More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 13,362 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Harvest | 133574185 | 2 hrs ago | IN | 0 ETH | 0.000000102083 | ||||
Withdraw | 133554899 | 13 hrs ago | IN | 0 ETH | 0.000000124886 | ||||
Harvest | 133554881 | 13 hrs ago | IN | 0 ETH | 0.000000097545 | ||||
Harvest | 133538404 | 22 hrs ago | IN | 0 ETH | 0.000000123467 | ||||
Deposit | 133538395 | 22 hrs ago | IN | 0 ETH | 0.000000152165 | ||||
Withdraw | 133530787 | 26 hrs ago | IN | 0 ETH | 0.000000435899 | ||||
Deposit | 133528109 | 27 hrs ago | IN | 0 ETH | 0.000000441491 | ||||
Withdraw | 133502483 | 42 hrs ago | IN | 0 ETH | 0.000000030405 | ||||
Harvest | 133494366 | 46 hrs ago | IN | 0 ETH | 0.000000140857 | ||||
Harvest | 133494335 | 46 hrs ago | IN | 0 ETH | 0.000000145685 | ||||
Withdraw | 133492988 | 47 hrs ago | IN | 0 ETH | 0.000000187138 | ||||
Withdraw | 133485603 | 2 days ago | IN | 0 ETH | 0.000000058039 | ||||
Harvest | 133483904 | 2 days ago | IN | 0 ETH | 0.000000152011 | ||||
Deposit | 133480086 | 2 days ago | IN | 0 ETH | 0.000000043096 | ||||
Withdraw | 133455220 | 2 days ago | IN | 0 ETH | 0.00000002837 | ||||
Harvest | 133455199 | 2 days ago | IN | 0 ETH | 0.000000022766 | ||||
Harvest | 133431859 | 3 days ago | IN | 0 ETH | 0.000000023299 | ||||
Deposit | 133426660 | 3 days ago | IN | 0 ETH | 0.000000019419 | ||||
Deposit | 133407768 | 3 days ago | IN | 0 ETH | 0.000000186151 | ||||
Harvest | 133407317 | 3 days ago | IN | 0 ETH | 0.000000045201 | ||||
Deposit | 133407310 | 3 days ago | IN | 0 ETH | 0.00000005271 | ||||
Deposit | 133404186 | 4 days ago | IN | 0 ETH | 0.00000002919 | ||||
Harvest | 133404072 | 4 days ago | IN | 0 ETH | 0.000000024878 | ||||
Withdraw | 133401199 | 4 days ago | IN | 0 ETH | 0.000000143402 | ||||
Deposit | 133394119 | 4 days ago | IN | 0 ETH | 0.000000046867 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
107558135 | 602 days ago | 0 ETH | ||||
107558135 | 602 days ago | 0 ETH | ||||
107551804 | 602 days ago | 0 ETH | ||||
107551804 | 602 days ago | 0 ETH | ||||
107551789 | 602 days ago | 0 ETH | ||||
107550343 | 602 days ago | 0 ETH | ||||
107550343 | 602 days ago | 0 ETH | ||||
107550343 | 602 days ago | 0 ETH | ||||
107543353 | 602 days ago | 0 ETH | ||||
107543353 | 602 days ago | 0 ETH | ||||
107543353 | 602 days ago | 0 ETH | ||||
107531610 | 602 days ago | 0 ETH | ||||
107531610 | 602 days ago | 0 ETH | ||||
107531610 | 602 days ago | 0 ETH | ||||
107531589 | 602 days ago | 0 ETH | ||||
107529899 | 602 days ago | 0 ETH | ||||
107529899 | 602 days ago | 0 ETH | ||||
107529864 | 602 days ago | 0 ETH | ||||
107523300 | 603 days ago | 0 ETH | ||||
107523300 | 603 days ago | 0 ETH | ||||
107523300 | 603 days ago | 0 ETH | ||||
107521333 | 603 days ago | 0 ETH | ||||
107521333 | 603 days ago | 0 ETH | ||||
107521333 | 603 days ago | 0 ETH | ||||
107517606 | 603 days ago | 0 ETH |
Loading...
Loading
Contract Name:
MasterChefReward
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 20000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity =0.8.14; /* ░██╗░░░░░░░██╗░█████╗░░█████╗░░░░░░░███████╗██╗ ░██║░░██╗░░██║██╔══██╗██╔══██╗░░░░░░██╔════╝██║ ░╚██╗████╗██╔╝██║░░██║██║░░██║█████╗█████╗░░██║ ░░████╔═████║░██║░░██║██║░░██║╚════╝██╔══╝░░██║ ░░╚██╔╝░╚██╔╝░╚█████╔╝╚█████╔╝░░░░░░██║░░░░░██║ ░░░╚═╝░░░╚═╝░░░╚════╝░░╚════╝░░░░░░░╚═╝░░░░░╚═╝ * * MIT License * =========== * * Copyright (c) 2020 WooTrade * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./interfaces/IMasterChefReward.sol"; import "./libraries/TransferHelper.sol"; contract MasterChefReward is IMasterChefReward, Ownable, ReentrancyGuard { using SafeERC20 for IERC20; using EnumerableSet for EnumerableSet.AddressSet; address public constant ETH_PLACEHOLDER_ADDR = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; IERC20 public immutable reward; uint256 public rewardPerBlock; uint256 public totalAllocPoint; PoolInfo[] public poolInfo; mapping(uint256 => mapping(address => UserInfo)) public userInfo; EnumerableSet.AddressSet private weTokenSet; constructor(IERC20 _reward, uint256 _rewardPerBlock) { reward = _reward; rewardPerBlock = _rewardPerBlock; } function poolLength() public view override returns (uint256) { return poolInfo.length; } function add( uint256 _allocPoint, IERC20 _weToken, IRewarder _rewarder ) external override onlyOwner { require(!weTokenSet.contains(address(_weToken)), "MCW: already added"); // Sanity check to ensure _lpToken is an ERC20 token _weToken.balanceOf(address(this)); // Sanity check if we add a rewarder if (address(_rewarder) != address(0)) { _rewarder.onRewarded(address(0), 0); } totalAllocPoint += _allocPoint; poolInfo.push( PoolInfo({ weToken: _weToken, allocPoint: _allocPoint, lastRewardBlock: block.number, accTokenPerShare: 0, rewarder: _rewarder }) ); weTokenSet.add(address(_weToken)); emit PoolAdded(poolLength() - 1, _allocPoint, _weToken, _rewarder); } function set( uint256 _pid, uint256 _allocPoint, IRewarder _rewarder ) external override onlyOwner { PoolInfo storage pool = poolInfo[_pid]; if (pool.allocPoint != _allocPoint) { totalAllocPoint = totalAllocPoint + _allocPoint - pool.allocPoint; pool.allocPoint = _allocPoint; } if (address(_rewarder) != address(pool.rewarder)) { if (address(_rewarder) != address(0)) { _rewarder.onRewarded(address(0), 0); } pool.rewarder = _rewarder; } emit PoolSet(_pid, _allocPoint, pool.rewarder); } function pendingReward(uint256 _pid, address _user) external view override returns (uint256 pendingRewardAmount, uint256 pendingRewarderTokens) { PoolInfo memory pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accTokenPerShare = pool.accTokenPerShare; uint256 weTokenSupply = pool.weToken.balanceOf(address(this)); if (block.number > pool.lastRewardBlock && weTokenSupply != 0) { uint256 blocks = block.number - pool.lastRewardBlock; uint256 totalRewardAmount = (blocks * rewardPerBlock * pool.allocPoint) / totalAllocPoint; accTokenPerShare += (totalRewardAmount * 1e12) / weTokenSupply; } pendingRewardAmount = (user.amount * accTokenPerShare) / 1e12 - user.rewardDebt; IRewarder rewarder = pool.rewarder; pendingRewarderTokens = address(rewarder) != address(0) ? rewarder.pendingTokens(_user) : 0; } // Update reward variables for all pools. Be careful of gas spending! function massUpdatePools() public override { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; pid++) { updatePool(pid); } } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public override { PoolInfo storage pool = poolInfo[_pid]; if (block.number > pool.lastRewardBlock) { uint256 weSupply = pool.weToken.balanceOf(address(this)); if (weSupply > 0) { uint256 blocks = block.number - pool.lastRewardBlock; uint256 totalRewardAmount = (blocks * rewardPerBlock * pool.allocPoint) / totalAllocPoint; pool.accTokenPerShare += (totalRewardAmount * 1e12) / weSupply; } pool.lastRewardBlock = block.number; emit PoolUpdated(_pid, pool.lastRewardBlock, weSupply, pool.accTokenPerShare); } } function setRewardPerBlock(uint256 _rewardPerBlock) external override onlyOwner { require(_rewardPerBlock > 0, "Invalid value"); massUpdatePools(); rewardPerBlock = _rewardPerBlock; emit RewardPerBlockUpdated(_rewardPerBlock); } function deposit(uint256 _pid, uint256 _amount) external override nonReentrant { updatePool(_pid); address caller = _msgSender(); PoolInfo memory pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][caller]; if (user.amount > 0) { // Harvest reward uint256 pending = (user.amount * pool.accTokenPerShare) / 1e12 - user.rewardDebt; reward.safeTransfer(caller, pending); emit Harvest(caller, _pid, pending); } user.amount += _amount; user.rewardDebt = (user.amount * pool.accTokenPerShare) / 1e12; IRewarder _rewarder = pool.rewarder; if (address(_rewarder) != address(0)) { _rewarder.onRewarded(caller, user.amount); } pool.weToken.safeTransferFrom(caller, address(this), _amount); emit Deposit(caller, _pid, _amount); } function withdraw(uint256 _pid, uint256 _amount) external override nonReentrant { require(_amount > 0, "MCW: invalid value"); updatePool(_pid); address caller = _msgSender(); PoolInfo memory pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][caller]; require(user.amount >= _amount, "MCW: !amount"); if (user.amount > 0) { uint256 pending = (user.amount * pool.accTokenPerShare) / 1e12 - user.rewardDebt; reward.safeTransfer(caller, pending); } user.amount -= _amount; user.rewardDebt = (user.amount * pool.accTokenPerShare) / 1e12; IRewarder _rewarder = pool.rewarder; if (address(_rewarder) != address(0)) { _rewarder.onRewarded(caller, user.amount); } pool.weToken.safeTransfer(caller, _amount); emit Withdraw(caller, _pid, _amount); } function harvest(uint256 _pid) external override nonReentrant { updatePool(_pid); address caller = _msgSender(); UserInfo storage user = userInfo[_pid][caller]; PoolInfo memory pool = poolInfo[_pid]; uint256 totalReward = (user.amount * pool.accTokenPerShare) / 1e12; uint256 pending = totalReward - user.rewardDebt; // Effects user.rewardDebt = totalReward; // Interactions reward.safeTransfer(caller, pending); IRewarder _rewarder = pool.rewarder; if (address(_rewarder) != address(0)) { _rewarder.onRewarded(caller, user.amount); } emit Harvest(caller, _pid, pending); } function emergencyWithdraw(uint256 _pid) external override nonReentrant { address caller = _msgSender(); PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][caller]; emit EmergencyWithdraw(caller, _pid, user.amount); uint256 amount = user.amount; user.amount = 0; user.rewardDebt = 0; IRewarder _rewarder = pool.rewarder; if (address(_rewarder) != address(0)) { _rewarder.onRewarded(caller, 0); } pool.weToken.safeTransfer(caller, amount); } /// @dev Rescue the specified funds when stuck happens /// @param stuckToken the stuck token address function inCaseTokenGotStuck(address stuckToken) external onlyOwner { require(stuckToken != address(0), "MCW: !address"); require(!weTokenSet.contains(stuckToken), "MCW: !staked_token"); if (stuckToken == ETH_PLACEHOLDER_ADDR) { TransferHelper.safeTransferETH(_msgSender(), address(this).balance); } else { uint256 amount = IERC20(stuckToken).balanceOf(address(this)); TransferHelper.safeTransfer(stuckToken, _msgSender(), amount); } } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false library TransferHelper { function safeApprove( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::safeApprove: approve failed' ); } function safeTransfer( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::safeTransfer: transfer failed' ); } function safeTransferFrom( address token, address from, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::transferFrom: transferFrom failed' ); } function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, 'TransferHelper::safeTransferETH: ETH transfer failed'); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./IRewarder.sol"; interface IMasterChefReward { event PoolAdded(uint256 poolId, uint256 allocPoint, IERC20 weToken, IRewarder rewarder); event PoolSet(uint256 poolId, uint256 allocPoint, IRewarder rewarder); event PoolUpdated(uint256 poolId, uint256 lastRewardBlock, uint256 supply, uint256 accTokenPerShare); event RewardPerBlockUpdated(uint256 rewardPerBlock); event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event Harvest(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); struct UserInfo { uint256 amount; uint256 rewardDebt; } struct PoolInfo { IERC20 weToken; uint256 allocPoint; uint256 lastRewardBlock; uint256 accTokenPerShare; IRewarder rewarder; } // System-level function function setRewardPerBlock(uint256 _rewardPerBlock) external; // Pool-related functions function poolLength() external view returns (uint256); function add( uint256 allocPoint, IERC20 weToken, IRewarder rewarder ) external; function set( uint256 pid, uint256 allocPoint, IRewarder rewarder ) external; function massUpdatePools() external; function updatePool(uint256 pid) external; // User-related functions function pendingReward(uint256 pid, address user) external view returns (uint256 pendingRewardAmount, uint256 pendingRewarderTokens); function deposit(uint256 pid, uint256 amount) external; function withdraw(uint256 pid, uint256 amount) external; function harvest(uint256 pid) external; function emergencyWithdraw(uint256 pid) external; function userInfo(uint256 pid, address user) external view returns (uint256 amount, uint256 rewardDebt); function poolInfo(uint256 pid) external view returns ( IERC20 weToken, uint256 allocPoint, uint256 lastRewardBlock, uint256 accTokenPerShare, IRewarder rewarder ); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.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]. */ abstract 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() { _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 making 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using 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' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @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 require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IRewarder { event OnRewarded(address indexed user, uint256 amount); event RewardRateUpdated(uint256 oldRate, uint256 newRate); struct UserInfo { uint256 amount; uint256 rewardDebt; uint256 unpaidRewards; } struct PoolInfo { uint256 accTokenPerShare; uint256 lastRewardBlock; } function onRewarded(address user, uint256 amount) external; function pendingTokens(address user) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with 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) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 20000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IERC20","name":"_reward","type":"address"},{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":false,"internalType":"contract IERC20","name":"weToken","type":"address"},{"indexed":false,"internalType":"contract IRewarder","name":"rewarder","type":"address"}],"name":"PoolAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":false,"internalType":"contract IRewarder","name":"rewarder","type":"address"}],"name":"PoolSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"supply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accTokenPerShare","type":"uint256"}],"name":"PoolUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardPerBlock","type":"uint256"}],"name":"RewardPerBlockUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"ETH_PLACEHOLDER_ADDR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_weToken","type":"address"},{"internalType":"contract IRewarder","name":"_rewarder","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stuckToken","type":"address"}],"name":"inCaseTokenGotStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"pendingRewardAmount","type":"uint256"},{"internalType":"uint256","name":"pendingRewarderTokens","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"weToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accTokenPerShare","type":"uint256"},{"internalType":"contract IRewarder","name":"rewarder","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reward","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IRewarder","name":"_rewarder","type":"address"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"}],"name":"setRewardPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620029a2380380620029a28339810160408190526200003491620000aa565b6200003f336200005a565b600180556001600160a01b03909116608052600255620000e6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060408385031215620000be57600080fd5b82516001600160a01b0381168114620000d657600080fd5b6020939093015192949293505050565b60805161288b62000117600039600081816101f50152818161063f015281816115a50152611a1c015261288b6000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c80638a1017ed116100d8578063ab7de0981161008c578063e1a4e72a11610066578063e1a4e72a1461036f578063e2bbb15814610382578063f2fde38b1461039557600080fd5b8063ab7de09814610336578063bb872b4a14610349578063ddc632621461035c57600080fd5b80638da5cb5b116100bd5780638da5cb5b146102be57806393f1a40b146102dc57806398969e821461032357600080fd5b80638a1017ed146102a25780638ae39cac146102b557600080fd5b806351eb05a61161012f578063630b5ba111610114578063630b5ba114610277578063715018a61461027f57806388c4cb361461028757600080fd5b806351eb05a6146102515780635312ea8e1461026457600080fd5b806317caf6f11161016057806317caf6f1146101e7578063228cb733146101f0578063441a3e701461023c57600080fd5b8063081e3eda1461017c5780631526fe2714610193575b600080fd5b6004545b6040519081526020015b60405180910390f35b6101a66101a136600461252a565b6103a8565b6040805173ffffffffffffffffffffffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a00161018a565b61018060035481565b6102177f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161018a565b61024f61024a366004612543565b610403565b005b61024f61025f36600461252a565b6107d5565b61024f61027236600461252a565b610971565b61024f610b60565b61024f610b89565b61021773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b61024f6102b0366004612587565b610b9d565b61018060025481565b60005473ffffffffffffffffffffffffffffffffffffffff16610217565b61030e6102ea3660046125c0565b60056020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161018a565b61030e6103313660046125c0565b610d68565b61024f6103443660046125f0565b610ff6565b61024f61035736600461252a565b611384565b61024f61036a36600461252a565b611439565b61024f61037d366004612627565b6116d8565b61024f610390366004612543565b6118b7565b61024f6103a3366004612627565b611bf0565b600481815481106103b857600080fd5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff93841695509193909290911685565b600260015403610474576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155806104e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20696e76616c69642076616c75650000000000000000000000000000604482015260640161046b565b6104e9826107d5565b600033905060006004848154811061050357610503612644565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff9081168452600182015484860152600282015484840152600382015460608501526004909101548116608084015289865293835280852093871685529290915291208054919250908411156105e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4d43573a2021616d6f756e740000000000000000000000000000000000000000604482015260640161046b565b805415610668576000816001015464e8d4a510008460600151846000015461060f91906126a2565b61061991906126df565b610623919061271a565b905061066673ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168583611ca4565b505b8381600001600082825461067c919061271a565b90915550506060820151815464e8d4a5100091610698916126a2565b6106a291906126df565b6001820155608082015173ffffffffffffffffffffffffffffffffffffffff8116156107555781546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b15801561073c57600080fd5b505af1158015610750573d6000803e3d6000fd5b505050505b82516107789073ffffffffffffffffffffffffffffffffffffffff168587611ca4565b858473ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568876040516107c191815260200190565b60405180910390a350506001805550505050565b6000600482815481106107ea576107ea612644565b90600052602060002090600502019050806002015443111561096d5780546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610874573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108989190612731565b905080156109175760008260020154436108b2919061271a565b905060006003548460010154600254846108cc91906126a2565b6108d691906126a2565b6108e091906126df565b9050826108f28264e8d4a510006126a2565b6108fc91906126df565b84600301600082825461090f919061274a565b909155505050505b43600283018190556003830154604080518681526020810193909352820183905260608201527fb0a2ded49817748754bcca0474b24011f01d4574dd5c40e14197ffa2e6540fef906080015b60405180910390a1505b5050565b6002600154036109dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161046b565b600260015560003390506000600483815481106109fc576109fc612644565b600091825260208083208684526005808352604080862073ffffffffffffffffffffffffffffffffffffffff891680885294529485902080549551919094029091019450919286927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059591610a739190815260200190565b60405180910390a3805460008083556001830155600483015473ffffffffffffffffffffffffffffffffffffffff168015610b31576040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526000602483015282169063560e39b290604401600060405180830381600087803b158015610b1857600080fd5b505af1158015610b2c573d6000803e3d6000fd5b505050505b8354610b549073ffffffffffffffffffffffffffffffffffffffff168684611ca4565b50506001805550505050565b60045460005b8181101561096d57610b77816107d5565b80610b8181612762565b915050610b66565b610b91611d7d565b610b9b6000611dfe565b565b610ba5611d7d565b600060048481548110610bba57610bba612644565b9060005260206000209060050201905082816001015414610bfd57806001015483600354610be8919061274a565b610bf2919061271a565b600355600181018390555b600481015473ffffffffffffffffffffffffffffffffffffffff838116911614610d085773ffffffffffffffffffffffffffffffffffffffff821615610cc5576040517f560e39b2000000000000000000000000000000000000000000000000000000008152600060048201819052602482015273ffffffffffffffffffffffffffffffffffffffff83169063560e39b290604401600060405180830381600087803b158015610cac57600080fd5b505af1158015610cc0573d6000803e3d6000fd5b505050505b6004810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84161790555b6004810154604080518681526020810186905273ffffffffffffffffffffffffffffffffffffffff90921682820152517fff38300b7866933a8f16457ac835b1f4c31c3ac59d4b179b65a044b2d49cd09e9181900360600190a150505050565b600080600060048581548110610d8057610d80612644565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff9081168452600182015484860152600282015484840152600382015460608501908152600492830154821660808601528c88529585528287208b821688529094528186209451835192517f70a08231000000000000000000000000000000000000000000000000000000008152309281019290925292965093949193919216906370a0823190602401602060405180830381865afa158015610e59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7d9190612731565b9050836040015143118015610e9157508015155b15610f01576000846040015143610ea8919061271a565b90506000600354866020015160025484610ec291906126a2565b610ecc91906126a2565b610ed691906126df565b905082610ee88264e8d4a510006126a2565b610ef291906126df565b610efc908561274a565b935050505b6001830154835464e8d4a5100090610f1a9085906126a2565b610f2491906126df565b610f2e919061271a565b608085015190965073ffffffffffffffffffffffffffffffffffffffff8116610f58576000610fe8565b6040517fc031a66f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015282169063c031a66f90602401602060405180830381865afa158015610fc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe89190612731565b955050505050509250929050565b610ffe611d7d565b611009600683611e73565b15611070576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20616c72656164792061646465640000000000000000000000000000604482015260640161046b565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa1580156110da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fe9190612731565b5073ffffffffffffffffffffffffffffffffffffffff8116156111a3576040517f560e39b2000000000000000000000000000000000000000000000000000000008152600060048201819052602482015273ffffffffffffffffffffffffffffffffffffffff82169063560e39b290604401600060405180830381600087803b15801561118a57600080fd5b505af115801561119e573d6000803e3d6000fd5b505050505b82600360008282546111b5919061274a565b90915550506040805160a08101825273ffffffffffffffffffffffffffffffffffffffff8085168252602082018681524393830193845260006060840181815286841660808601908152600480546001810182559352945160059092027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810180549386167fffffffffffffffffffffffff000000000000000000000000000000000000000094851617905592517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c84015594517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d83015593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e82015591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f90920180549290911691909216179055611311600683611ea7565b507fe72dff05c5a9817b99753fffdec6b7800cc743c2f4b1fbc3eeb93983712a2a46600161133e60045490565b611348919061271a565b604080519182526020820186905273ffffffffffffffffffffffffffffffffffffffff8086169183019190915283166060820152608001610963565b61138c611d7d565b600081116113f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642076616c756500000000000000000000000000000000000000604482015260640161046b565b6113fe610b60565b60028190556040518181527f5ed0ffa545a9eae0edd36b74378d16454cf385281383c7632ad5b2ebf3ab2b929060200160405180910390a150565b6002600154036114a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161046b565b60026001556114b3816107d5565b600081815260056020908152604080832033808552925282206004805492939192859081106114e4576114e4612644565b600091825260208083206040805160a0810182526005909402909101805473ffffffffffffffffffffffffffffffffffffffff90811685526001820154938501939093526002810154918401919091526003810154606084018190526004909101549091166080830152845491935064e8d4a510009161156491906126a2565b61156e91906126df565b90506000836001015482611582919061271a565b6001850183905590506115cc73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168683611ca4565b608083015173ffffffffffffffffffffffffffffffffffffffff81161561167a5784546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b15801561166157600080fd5b505af1158015611675573d6000803e3d6000fd5b505050505b868673ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954846040516116c391815260200190565b60405180910390a35050600180555050505050565b6116e0611d7d565b73ffffffffffffffffffffffffffffffffffffffff811661175d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4d43573a20216164647265737300000000000000000000000000000000000000604482015260640161046b565b611768600682611e73565b156117cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20217374616b65645f746f6b656e0000000000000000000000000000604482015260640161046b565b7fffffffffffffffffffffffff111111111111111111111111111111111111111273ffffffffffffffffffffffffffffffffffffffff821601611819576118163347611ec9565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015611886573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118aa9190612731565b905061096d823383611fd3565b600260015403611923576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161046b565b6002600155611931826107d5565b600033905060006004848154811061194b5761194b612644565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff90811684526001820154848601526002820154848401526003820154606085015260049091015481166080840152898652938352808520938716855292909152912080549192509015611a96576000816001015464e8d4a51000846060015184600001546119ec91906126a2565b6119f691906126df565b611a00919061271a565b9050611a4373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168583611ca4565b858473ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae066092495483604051611a8c91815260200190565b60405180910390a3505b83816000016000828254611aaa919061274a565b90915550506060820151815464e8d4a5100091611ac6916126a2565b611ad091906126df565b6001820155608082015173ffffffffffffffffffffffffffffffffffffffff811615611b835781546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b158015611b6a57600080fd5b505af1158015611b7e573d6000803e3d6000fd5b505050505b8251611ba79073ffffffffffffffffffffffffffffffffffffffff16853088612169565b858473ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15876040516107c191815260200190565b611bf8611d7d565b73ffffffffffffffffffffffffffffffffffffffff8116611c9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161046b565b61181681611dfe565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052611d789084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526121cd565b505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161046b565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260018301602052604081205415155b90505b92915050565b6000611e9e8373ffffffffffffffffffffffffffffffffffffffff84166122d9565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051611f0091906127c6565b60006040518083038185875af1925050503d8060008114611f3d576040519150601f19603f3d011682016040523d82523d6000602084013e611f42565b606091505b5050905080611d78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c6564000000000000000000000000606482015260840161046b565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052915160009283929087169161206a91906127c6565b6000604051808303816000865af19150503d80600081146120a7576040519150601f19603f3d011682016040523d82523d6000602084013e6120ac565b606091505b50915091508180156120d65750805115806120d65750808060200190518101906120d691906127e2565b612162576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c656400000000000000000000000000000000000000606482015260840161046b565b5050505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526121c79085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611cf6565b50505050565b600061222f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166123289092919063ffffffff16565b805190915015611d78578080602001905181019061224d91906127e2565b611d78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161046b565b600081815260018301602052604081205461232057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611ea1565b506000611ea1565b60606123378484600085612341565b90505b9392505050565b6060824710156123d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161046b565b73ffffffffffffffffffffffffffffffffffffffff85163b612451576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161046b565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161247a91906127c6565b60006040518083038185875af1925050503d80600081146124b7576040519150601f19603f3d011682016040523d82523d6000602084013e6124bc565b606091505b50915091506124cc8282866124d7565b979650505050505050565b606083156124e657508161233a565b8251156124f65782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046b9190612804565b60006020828403121561253c57600080fd5b5035919050565b6000806040838503121561255657600080fd5b50508035926020909101359150565b73ffffffffffffffffffffffffffffffffffffffff8116811461181657600080fd5b60008060006060848603121561259c57600080fd5b833592506020840135915060408401356125b581612565565b809150509250925092565b600080604083850312156125d357600080fd5b8235915060208301356125e581612565565b809150509250929050565b60008060006060848603121561260557600080fd5b83359250602084013561261781612565565b915060408401356125b581612565565b60006020828403121561263957600080fd5b813561233a81612565565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156126da576126da612673565b500290565b600082612715577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60008282101561272c5761272c612673565b500390565b60006020828403121561274357600080fd5b5051919050565b6000821982111561275d5761275d612673565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361279357612793612673565b5060010190565b60005b838110156127b557818101518382015260200161279d565b838111156121c75750506000910152565b600082516127d881846020870161279a565b9190910192915050565b6000602082840312156127f457600080fd5b8151801515811461233a57600080fd5b602081526000825180602084015261282381604085016020870161279a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220e59b59eb42d2c625715af657982c9ae0e9d2a5563b78d06e7b5ec2362a4af3f864736f6c634300080e0033000000000000000000000000871f2f2ff935fd1ed867842ff2a7bfd051a5e527000000000000000000000000000000000000000000000000000009184e72a000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101775760003560e01c80638a1017ed116100d8578063ab7de0981161008c578063e1a4e72a11610066578063e1a4e72a1461036f578063e2bbb15814610382578063f2fde38b1461039557600080fd5b8063ab7de09814610336578063bb872b4a14610349578063ddc632621461035c57600080fd5b80638da5cb5b116100bd5780638da5cb5b146102be57806393f1a40b146102dc57806398969e821461032357600080fd5b80638a1017ed146102a25780638ae39cac146102b557600080fd5b806351eb05a61161012f578063630b5ba111610114578063630b5ba114610277578063715018a61461027f57806388c4cb361461028757600080fd5b806351eb05a6146102515780635312ea8e1461026457600080fd5b806317caf6f11161016057806317caf6f1146101e7578063228cb733146101f0578063441a3e701461023c57600080fd5b8063081e3eda1461017c5780631526fe2714610193575b600080fd5b6004545b6040519081526020015b60405180910390f35b6101a66101a136600461252a565b6103a8565b6040805173ffffffffffffffffffffffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a00161018a565b61018060035481565b6102177f000000000000000000000000871f2f2ff935fd1ed867842ff2a7bfd051a5e52781565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161018a565b61024f61024a366004612543565b610403565b005b61024f61025f36600461252a565b6107d5565b61024f61027236600461252a565b610971565b61024f610b60565b61024f610b89565b61021773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b61024f6102b0366004612587565b610b9d565b61018060025481565b60005473ffffffffffffffffffffffffffffffffffffffff16610217565b61030e6102ea3660046125c0565b60056020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161018a565b61030e6103313660046125c0565b610d68565b61024f6103443660046125f0565b610ff6565b61024f61035736600461252a565b611384565b61024f61036a36600461252a565b611439565b61024f61037d366004612627565b6116d8565b61024f610390366004612543565b6118b7565b61024f6103a3366004612627565b611bf0565b600481815481106103b857600080fd5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff93841695509193909290911685565b600260015403610474576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155806104e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20696e76616c69642076616c75650000000000000000000000000000604482015260640161046b565b6104e9826107d5565b600033905060006004848154811061050357610503612644565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff9081168452600182015484860152600282015484840152600382015460608501526004909101548116608084015289865293835280852093871685529290915291208054919250908411156105e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4d43573a2021616d6f756e740000000000000000000000000000000000000000604482015260640161046b565b805415610668576000816001015464e8d4a510008460600151846000015461060f91906126a2565b61061991906126df565b610623919061271a565b905061066673ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000871f2f2ff935fd1ed867842ff2a7bfd051a5e527168583611ca4565b505b8381600001600082825461067c919061271a565b90915550506060820151815464e8d4a5100091610698916126a2565b6106a291906126df565b6001820155608082015173ffffffffffffffffffffffffffffffffffffffff8116156107555781546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b15801561073c57600080fd5b505af1158015610750573d6000803e3d6000fd5b505050505b82516107789073ffffffffffffffffffffffffffffffffffffffff168587611ca4565b858473ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568876040516107c191815260200190565b60405180910390a350506001805550505050565b6000600482815481106107ea576107ea612644565b90600052602060002090600502019050806002015443111561096d5780546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610874573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108989190612731565b905080156109175760008260020154436108b2919061271a565b905060006003548460010154600254846108cc91906126a2565b6108d691906126a2565b6108e091906126df565b9050826108f28264e8d4a510006126a2565b6108fc91906126df565b84600301600082825461090f919061274a565b909155505050505b43600283018190556003830154604080518681526020810193909352820183905260608201527fb0a2ded49817748754bcca0474b24011f01d4574dd5c40e14197ffa2e6540fef906080015b60405180910390a1505b5050565b6002600154036109dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161046b565b600260015560003390506000600483815481106109fc576109fc612644565b600091825260208083208684526005808352604080862073ffffffffffffffffffffffffffffffffffffffff891680885294529485902080549551919094029091019450919286927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059591610a739190815260200190565b60405180910390a3805460008083556001830155600483015473ffffffffffffffffffffffffffffffffffffffff168015610b31576040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526000602483015282169063560e39b290604401600060405180830381600087803b158015610b1857600080fd5b505af1158015610b2c573d6000803e3d6000fd5b505050505b8354610b549073ffffffffffffffffffffffffffffffffffffffff168684611ca4565b50506001805550505050565b60045460005b8181101561096d57610b77816107d5565b80610b8181612762565b915050610b66565b610b91611d7d565b610b9b6000611dfe565b565b610ba5611d7d565b600060048481548110610bba57610bba612644565b9060005260206000209060050201905082816001015414610bfd57806001015483600354610be8919061274a565b610bf2919061271a565b600355600181018390555b600481015473ffffffffffffffffffffffffffffffffffffffff838116911614610d085773ffffffffffffffffffffffffffffffffffffffff821615610cc5576040517f560e39b2000000000000000000000000000000000000000000000000000000008152600060048201819052602482015273ffffffffffffffffffffffffffffffffffffffff83169063560e39b290604401600060405180830381600087803b158015610cac57600080fd5b505af1158015610cc0573d6000803e3d6000fd5b505050505b6004810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84161790555b6004810154604080518681526020810186905273ffffffffffffffffffffffffffffffffffffffff90921682820152517fff38300b7866933a8f16457ac835b1f4c31c3ac59d4b179b65a044b2d49cd09e9181900360600190a150505050565b600080600060048581548110610d8057610d80612644565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff9081168452600182015484860152600282015484840152600382015460608501908152600492830154821660808601528c88529585528287208b821688529094528186209451835192517f70a08231000000000000000000000000000000000000000000000000000000008152309281019290925292965093949193919216906370a0823190602401602060405180830381865afa158015610e59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7d9190612731565b9050836040015143118015610e9157508015155b15610f01576000846040015143610ea8919061271a565b90506000600354866020015160025484610ec291906126a2565b610ecc91906126a2565b610ed691906126df565b905082610ee88264e8d4a510006126a2565b610ef291906126df565b610efc908561274a565b935050505b6001830154835464e8d4a5100090610f1a9085906126a2565b610f2491906126df565b610f2e919061271a565b608085015190965073ffffffffffffffffffffffffffffffffffffffff8116610f58576000610fe8565b6040517fc031a66f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015282169063c031a66f90602401602060405180830381865afa158015610fc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe89190612731565b955050505050509250929050565b610ffe611d7d565b611009600683611e73565b15611070576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20616c72656164792061646465640000000000000000000000000000604482015260640161046b565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa1580156110da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fe9190612731565b5073ffffffffffffffffffffffffffffffffffffffff8116156111a3576040517f560e39b2000000000000000000000000000000000000000000000000000000008152600060048201819052602482015273ffffffffffffffffffffffffffffffffffffffff82169063560e39b290604401600060405180830381600087803b15801561118a57600080fd5b505af115801561119e573d6000803e3d6000fd5b505050505b82600360008282546111b5919061274a565b90915550506040805160a08101825273ffffffffffffffffffffffffffffffffffffffff8085168252602082018681524393830193845260006060840181815286841660808601908152600480546001810182559352945160059092027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810180549386167fffffffffffffffffffffffff000000000000000000000000000000000000000094851617905592517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c84015594517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d83015593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e82015591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f90920180549290911691909216179055611311600683611ea7565b507fe72dff05c5a9817b99753fffdec6b7800cc743c2f4b1fbc3eeb93983712a2a46600161133e60045490565b611348919061271a565b604080519182526020820186905273ffffffffffffffffffffffffffffffffffffffff8086169183019190915283166060820152608001610963565b61138c611d7d565b600081116113f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642076616c756500000000000000000000000000000000000000604482015260640161046b565b6113fe610b60565b60028190556040518181527f5ed0ffa545a9eae0edd36b74378d16454cf385281383c7632ad5b2ebf3ab2b929060200160405180910390a150565b6002600154036114a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161046b565b60026001556114b3816107d5565b600081815260056020908152604080832033808552925282206004805492939192859081106114e4576114e4612644565b600091825260208083206040805160a0810182526005909402909101805473ffffffffffffffffffffffffffffffffffffffff90811685526001820154938501939093526002810154918401919091526003810154606084018190526004909101549091166080830152845491935064e8d4a510009161156491906126a2565b61156e91906126df565b90506000836001015482611582919061271a565b6001850183905590506115cc73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000871f2f2ff935fd1ed867842ff2a7bfd051a5e527168683611ca4565b608083015173ffffffffffffffffffffffffffffffffffffffff81161561167a5784546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b15801561166157600080fd5b505af1158015611675573d6000803e3d6000fd5b505050505b868673ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954846040516116c391815260200190565b60405180910390a35050600180555050505050565b6116e0611d7d565b73ffffffffffffffffffffffffffffffffffffffff811661175d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4d43573a20216164647265737300000000000000000000000000000000000000604482015260640161046b565b611768600682611e73565b156117cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20217374616b65645f746f6b656e0000000000000000000000000000604482015260640161046b565b7fffffffffffffffffffffffff111111111111111111111111111111111111111273ffffffffffffffffffffffffffffffffffffffff821601611819576118163347611ec9565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015611886573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118aa9190612731565b905061096d823383611fd3565b600260015403611923576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161046b565b6002600155611931826107d5565b600033905060006004848154811061194b5761194b612644565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff90811684526001820154848601526002820154848401526003820154606085015260049091015481166080840152898652938352808520938716855292909152912080549192509015611a96576000816001015464e8d4a51000846060015184600001546119ec91906126a2565b6119f691906126df565b611a00919061271a565b9050611a4373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000871f2f2ff935fd1ed867842ff2a7bfd051a5e527168583611ca4565b858473ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae066092495483604051611a8c91815260200190565b60405180910390a3505b83816000016000828254611aaa919061274a565b90915550506060820151815464e8d4a5100091611ac6916126a2565b611ad091906126df565b6001820155608082015173ffffffffffffffffffffffffffffffffffffffff811615611b835781546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b158015611b6a57600080fd5b505af1158015611b7e573d6000803e3d6000fd5b505050505b8251611ba79073ffffffffffffffffffffffffffffffffffffffff16853088612169565b858473ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15876040516107c191815260200190565b611bf8611d7d565b73ffffffffffffffffffffffffffffffffffffffff8116611c9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161046b565b61181681611dfe565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052611d789084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526121cd565b505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161046b565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260018301602052604081205415155b90505b92915050565b6000611e9e8373ffffffffffffffffffffffffffffffffffffffff84166122d9565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051611f0091906127c6565b60006040518083038185875af1925050503d8060008114611f3d576040519150601f19603f3d011682016040523d82523d6000602084013e611f42565b606091505b5050905080611d78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c6564000000000000000000000000606482015260840161046b565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052915160009283929087169161206a91906127c6565b6000604051808303816000865af19150503d80600081146120a7576040519150601f19603f3d011682016040523d82523d6000602084013e6120ac565b606091505b50915091508180156120d65750805115806120d65750808060200190518101906120d691906127e2565b612162576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c656400000000000000000000000000000000000000606482015260840161046b565b5050505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526121c79085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611cf6565b50505050565b600061222f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166123289092919063ffffffff16565b805190915015611d78578080602001905181019061224d91906127e2565b611d78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161046b565b600081815260018301602052604081205461232057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611ea1565b506000611ea1565b60606123378484600085612341565b90505b9392505050565b6060824710156123d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161046b565b73ffffffffffffffffffffffffffffffffffffffff85163b612451576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161046b565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161247a91906127c6565b60006040518083038185875af1925050503d80600081146124b7576040519150601f19603f3d011682016040523d82523d6000602084013e6124bc565b606091505b50915091506124cc8282866124d7565b979650505050505050565b606083156124e657508161233a565b8251156124f65782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046b9190612804565b60006020828403121561253c57600080fd5b5035919050565b6000806040838503121561255657600080fd5b50508035926020909101359150565b73ffffffffffffffffffffffffffffffffffffffff8116811461181657600080fd5b60008060006060848603121561259c57600080fd5b833592506020840135915060408401356125b581612565565b809150509250925092565b600080604083850312156125d357600080fd5b8235915060208301356125e581612565565b809150509250929050565b60008060006060848603121561260557600080fd5b83359250602084013561261781612565565b915060408401356125b581612565565b60006020828403121561263957600080fd5b813561233a81612565565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156126da576126da612673565b500290565b600082612715577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60008282101561272c5761272c612673565b500390565b60006020828403121561274357600080fd5b5051919050565b6000821982111561275d5761275d612673565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361279357612793612673565b5060010190565b60005b838110156127b557818101518382015260200161279d565b838111156121c75750506000910152565b600082516127d881846020870161279a565b9190910192915050565b6000602082840312156127f457600080fd5b8151801515811461233a57600080fd5b602081526000825180602084015261282381604085016020870161279a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220e59b59eb42d2c625715af657982c9ae0e9d2a5563b78d06e7b5ec2362a4af3f864736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000871f2f2ff935fd1ed867842ff2a7bfd051a5e527000000000000000000000000000000000000000000000000000009184e72a000
-----Decoded View---------------
Arg [0] : _reward (address): 0x871f2F2ff935FD1eD867842FF2a7bfD051A5E527
Arg [1] : _rewardPerBlock (uint256): 10000000000000
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000871f2f2ff935fd1ed867842ff2a7bfd051a5e527
Arg [1] : 000000000000000000000000000000000000000000000000000009184e72a000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.