More Info
Private Name Tags
ContractCreator
Latest 20 from a total of 20 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Harvest | 10176438 | 8 hrs ago | IN | 0 S | 0.00618146 | ||||
Deposit | 10170268 | 8 hrs ago | IN | 0 S | 0.00621065 | ||||
Deposit | 10067345 | 18 hrs ago | IN | 0 S | 0.00628133 | ||||
Deposit | 10063220 | 18 hrs ago | IN | 0 S | 0.00621197 | ||||
Deposit | 10062703 | 18 hrs ago | IN | 0 S | 0.00647531 | ||||
Deposit | 10062111 | 19 hrs ago | IN | 0 S | 0.00773265 | ||||
Deposit | 10036057 | 21 hrs ago | IN | 0 S | 0.00787556 | ||||
Deposit | 10028745 | 22 hrs ago | IN | 0 S | 0.00713783 | ||||
Deposit | 10025098 | 22 hrs ago | IN | 0 S | 0.0076285 | ||||
Deposit | 10024527 | 22 hrs ago | IN | 0 S | 0.00656311 | ||||
Deposit | 10022905 | 22 hrs ago | IN | 0 S | 0.00725228 | ||||
Set Reward Per B... | 10005452 | 24 hrs ago | IN | 0 S | 0.00312774 | ||||
Deposit | 10004381 | 24 hrs ago | IN | 0 S | 0.00752086 | ||||
Set Reward Per B... | 9981742 | 26 hrs ago | IN | 0 S | 0.00297374 | ||||
Deposit | 9980531 | 27 hrs ago | IN | 0 S | 0.00502386 | ||||
Withdraw | 9976890 | 27 hrs ago | IN | 0 S | 0.0057228 | ||||
Deposit | 9976840 | 27 hrs ago | IN | 0 S | 0.00587911 | ||||
Set Reward Per B... | 9976678 | 27 hrs ago | IN | 0 S | 0.00268972 | ||||
Add | 9976581 | 27 hrs ago | IN | 0 S | 0.01178479 | ||||
Transfer Ownersh... | 9771650 | 47 hrs ago | IN | 0 S | 0.00157146 |
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: MIT // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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.9.0) (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() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/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.9.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 (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/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; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ 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)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ 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"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ 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"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation 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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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); } } }
// 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 (last updated v4.9.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. 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. * * ```solidity * 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) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // 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 in 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 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 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: GPL-2.0-or-later pragma solidity >=0.6.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title TransferHelper /// @notice Contains helper methods for interacting with ERC20 and native tokens that do not consistently return true/false /// @dev implementation from https://github.com/Uniswap/v3-periphery/blob/main/contracts/libraries/TransferHelper.sol library TransferHelper { /// @notice Transfers tokens from the targeted address to the given destination /// @notice Errors with 'STF' if transfer fails /// @param token The contract address of the token to be transferred /// @param from The originating address from which the tokens will be transferred /// @param to The destination address of the transfer /// @param value The amount to be transferred function safeTransferFrom( address token, address from, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), "STF"); } /// @notice Transfers tokens from msg.sender to a recipient /// @dev Errors with ST if transfer fails /// @param token The contract address of the token which will be transferred /// @param to The recipient of the transfer /// @param value The value of the transfer function safeTransfer( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), "ST"); } /// @notice Approves the stipulated contract to spend the given allowance in the given token /// @dev Errors with 'SA' if transfer fails /// @param token The contract address of the token to be approved /// @param to The target of the approval /// @param value The amount of the given token the target will be allowed to spend function safeApprove( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), "SA"); } /// @notice Transfers ETH to the recipient address /// @dev Fails with `STE` /// @param to The destination of the transfer /// @param value The value to be transferred function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, "STE"); } }
{ "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
[{"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
60a06040523480156200001157600080fd5b5060405162002847380380620028478339810160408190526200003491620000aa565b6200003f336200005a565b600180556001600160a01b03909116608052600255620000e6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060408385031215620000be57600080fd5b82516001600160a01b0381168114620000d657600080fd5b6020939093015192949293505050565b60805161273062000117600039600081816101f5015281816105d901528181611476015261188301526127306000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c80638a1017ed116100d8578063ab7de0981161008c578063e1a4e72a11610066578063e1a4e72a1461036f578063e2bbb15814610382578063f2fde38b1461039557600080fd5b8063ab7de09814610336578063bb872b4a14610349578063ddc632621461035c57600080fd5b80638da5cb5b116100bd5780638da5cb5b146102be57806393f1a40b146102dc57806398969e821461032357600080fd5b80638a1017ed146102a25780638ae39cac146102b557600080fd5b806351eb05a61161012f578063630b5ba111610114578063630b5ba114610277578063715018a61461027f57806388c4cb361461028757600080fd5b806351eb05a6146102515780635312ea8e1461026457600080fd5b806317caf6f11161016057806317caf6f1146101e7578063228cb733146101f0578063441a3e701461023c57600080fd5b8063081e3eda1461017c5780631526fe2714610193575b600080fd5b6004545b6040519081526020015b60405180910390f35b6101a66101a13660046123c8565b6103a8565b6040805173ffffffffffffffffffffffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a00161018a565b61018060035481565b6102177f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161018a565b61024f61024a3660046123e1565b610403565b005b61024f61025f3660046123c8565b610774565b61024f6102723660046123c8565b61090f565b61024f610a9a565b61024f610ac3565b61021773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b61024f6102b0366004612425565b610ad7565b61018060025481565b60005473ffffffffffffffffffffffffffffffffffffffff16610217565b61030e6102ea36600461245e565b60056020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161018a565b61030e61033136600461245e565b610ca2565b61024f61034436600461248e565b610f30565b61024f6103573660046123c8565b6112be565b61024f61036a3660046123c8565b611373565b61024f61037d3660046124c5565b6115ab565b61024f6103903660046123e1565b611787565b61024f6103a33660046124c5565b611a57565b600481815481106103b857600080fd5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff93841695509193909290911685565b61040b611b0b565b6000811161047a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20696e76616c69642076616c7565000000000000000000000000000060448201526064015b60405180910390fd5b61048382610774565b600033905060006004848154811061049d5761049d6124e9565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff908116845260018201548486015260028201548484015260038201546060850152600490910154811660808401528986529383528085209387168552929091529120805491925090841115610581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4d43573a2021616d6f756e7400000000000000000000000000000000000000006044820152606401610471565b805415610602576000816001015464e8d4a51000846060015184600001546105a99190612547565b6105b39190612584565b6105bd91906125bf565b905061060073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168583611b7e565b505b8381600001600082825461061691906125bf565b90915550506060820151815464e8d4a510009161063291612547565b61063c9190612584565b6001820155608082015173ffffffffffffffffffffffffffffffffffffffff8116156106ef5781546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b1580156106d657600080fd5b505af11580156106ea573d6000803e3d6000fd5b505050505b82516107129073ffffffffffffffffffffffffffffffffffffffff168587611b7e565b858473ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688760405161075b91815260200190565b60405180910390a35050505061077060018055565b5050565b600060048281548110610789576107896124e9565b9060005260206000209060050201905080600201544311156107705780546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610813573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083791906125d6565b905080156108b657600082600201544361085191906125bf565b9050600060035484600101546002548461086b9190612547565b6108759190612547565b61087f9190612584565b9050826108918264e8d4a51000612547565b61089b9190612584565b8460030160008282546108ae91906125ef565b909155505050505b43600283018190556003830154604080518681526020810193909352820183905260608201527fb0a2ded49817748754bcca0474b24011f01d4574dd5c40e14197ffa2e6540fef906080015b60405180910390a1505050565b610917611b0b565b6000339050600060048381548110610931576109316124e9565b600091825260208083208684526005808352604080862073ffffffffffffffffffffffffffffffffffffffff891680885294529485902080549551919094029091019450919286927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595916109a89190815260200190565b60405180910390a3805460008083556001830155600483015473ffffffffffffffffffffffffffffffffffffffff168015610a66576040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526000602483015282169063560e39b290604401600060405180830381600087803b158015610a4d57600080fd5b505af1158015610a61573d6000803e3d6000fd5b505050505b8354610a899073ffffffffffffffffffffffffffffffffffffffff168684611b7e565b5050505050610a9760018055565b50565b60045460005b8181101561077057610ab181610774565b80610abb81612607565b915050610aa0565b610acb611c57565b610ad56000611cd8565b565b610adf611c57565b600060048481548110610af457610af46124e9565b9060005260206000209060050201905082816001015414610b3757806001015483600354610b2291906125ef565b610b2c91906125bf565b600355600181018390555b600481015473ffffffffffffffffffffffffffffffffffffffff838116911614610c425773ffffffffffffffffffffffffffffffffffffffff821615610bff576040517f560e39b2000000000000000000000000000000000000000000000000000000008152600060048201819052602482015273ffffffffffffffffffffffffffffffffffffffff83169063560e39b290604401600060405180830381600087803b158015610be657600080fd5b505af1158015610bfa573d6000803e3d6000fd5b505050505b6004810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84161790555b6004810154604080518681526020810186905273ffffffffffffffffffffffffffffffffffffffff90921682820152517fff38300b7866933a8f16457ac835b1f4c31c3ac59d4b179b65a044b2d49cd09e9181900360600190a150505050565b600080600060048581548110610cba57610cba6124e9565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff9081168452600182015484860152600282015484840152600382015460608501908152600492830154821660808601528c88529585528287208b821688529094528186209451835192517f70a08231000000000000000000000000000000000000000000000000000000008152309281019290925292965093949193919216906370a0823190602401602060405180830381865afa158015610d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db791906125d6565b9050836040015143118015610dcb57508015155b15610e3b576000846040015143610de291906125bf565b90506000600354866020015160025484610dfc9190612547565b610e069190612547565b610e109190612584565b905082610e228264e8d4a51000612547565b610e2c9190612584565b610e3690856125ef565b935050505b6001830154835464e8d4a5100090610e54908590612547565b610e5e9190612584565b610e6891906125bf565b608085015190965073ffffffffffffffffffffffffffffffffffffffff8116610e92576000610f22565b6040517fc031a66f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015282169063c031a66f90602401602060405180830381865afa158015610efe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2291906125d6565b955050505050509250929050565b610f38611c57565b610f43600683611d4d565b15610faa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20616c726561647920616464656400000000000000000000000000006044820152606401610471565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015611014573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103891906125d6565b5073ffffffffffffffffffffffffffffffffffffffff8116156110dd576040517f560e39b2000000000000000000000000000000000000000000000000000000008152600060048201819052602482015273ffffffffffffffffffffffffffffffffffffffff82169063560e39b290604401600060405180830381600087803b1580156110c457600080fd5b505af11580156110d8573d6000803e3d6000fd5b505050505b82600360008282546110ef91906125ef565b90915550506040805160a08101825273ffffffffffffffffffffffffffffffffffffffff8085168252602082018681524393830193845260006060840181815286841660808601908152600480546001810182559352945160059092027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810180549386167fffffffffffffffffffffffff000000000000000000000000000000000000000094851617905592517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c84015594517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d83015593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e82015591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f9092018054929091169190921617905561124b600683611d81565b507fe72dff05c5a9817b99753fffdec6b7800cc743c2f4b1fbc3eeb93983712a2a46600161127860045490565b61128291906125bf565b604080519182526020820186905273ffffffffffffffffffffffffffffffffffffffff8086169183019190915283166060820152608001610902565b6112c6611c57565b60008111611330576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642076616c7565000000000000000000000000000000000000006044820152606401610471565b611338610a9a565b60028190556040518181527f5ed0ffa545a9eae0edd36b74378d16454cf385281383c7632ad5b2ebf3ab2b929060200160405180910390a150565b61137b611b0b565b61138481610774565b600081815260056020908152604080832033808552925282206004805492939192859081106113b5576113b56124e9565b600091825260208083206040805160a0810182526005909402909101805473ffffffffffffffffffffffffffffffffffffffff90811685526001820154938501939093526002810154918401919091526003810154606084018190526004909101549091166080830152845491935064e8d4a51000916114359190612547565b61143f9190612584565b9050600083600101548261145391906125bf565b60018501839055905061149d73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168683611b7e565b608083015173ffffffffffffffffffffffffffffffffffffffff81161561154b5784546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b15801561153257600080fd5b505af1158015611546573d6000803e3d6000fd5b505050505b868673ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249548460405161159491815260200190565b60405180910390a3505050505050610a9760018055565b6115b3611c57565b73ffffffffffffffffffffffffffffffffffffffff8116611630576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4d43573a202161646472657373000000000000000000000000000000000000006044820152606401610471565b61163b600682611d4d565b156116a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20217374616b65645f746f6b656e00000000000000000000000000006044820152606401610471565b7fffffffffffffffffffffffff111111111111111111111111111111111111111273ffffffffffffffffffffffffffffffffffffffff8216016116e957610a973347611da3565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015611756573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177a91906125d6565b9050610770823383611e87565b61178f611b0b565b61179882610774565b60003390506000600484815481106117b2576117b26124e9565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff908116845260018201548486015260028201548484015260038201546060850152600490910154811660808401528986529383528085209387168552929091529120805491925090156118fd576000816001015464e8d4a51000846060015184600001546118539190612547565b61185d9190612584565b61186791906125bf565b90506118aa73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168583611b7e565b858473ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954836040516118f391815260200190565b60405180910390a3505b8381600001600082825461191191906125ef565b90915550506060820151815464e8d4a510009161192d91612547565b6119379190612584565b6001820155608082015173ffffffffffffffffffffffffffffffffffffffff8116156119ea5781546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b1580156119d157600080fd5b505af11580156119e5573d6000803e3d6000fd5b505050505b8251611a0e9073ffffffffffffffffffffffffffffffffffffffff16853088611ff7565b858473ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a158760405161075b91815260200190565b611a5f611c57565b73ffffffffffffffffffffffffffffffffffffffff8116611b02576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610471565b610a9781611cd8565b600260015403611b77576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610471565b6002600155565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052611c529084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261205b565b505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610ad5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610471565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260018301602052604081205415155b90505b92915050565b6000611d788373ffffffffffffffffffffffffffffffffffffffff841661216a565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051611dda919061266b565b60006040518083038185875af1925050503d8060008114611e17576040519150601f19603f3d011682016040523d82523d6000602084013e611e1c565b606091505b5050905080611c52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f53544500000000000000000000000000000000000000000000000000000000006044820152606401610471565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691611f1e919061266b565b6000604051808303816000865af19150503d8060008114611f5b576040519150601f19603f3d011682016040523d82523d6000602084013e611f60565b606091505b5091509150818015611f8a575080511580611f8a575080806020019051810190611f8a9190612687565b611ff0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600260248201527f53540000000000000000000000000000000000000000000000000000000000006044820152606401610471565b5050505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526120559085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611bd0565b50505050565b60006120bd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166121b99092919063ffffffff16565b90508051600014806120de5750808060200190518101906120de9190612687565b611c52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610471565b60008181526001830160205260408120546121b157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d7b565b506000611d7b565b60606121c884846000856121d0565b949350505050565b606082471015612262576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610471565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161228b919061266b565b60006040518083038185875af1925050503d80600081146122c8576040519150601f19603f3d011682016040523d82523d6000602084013e6122cd565b606091505b50915091506122de878383876122e9565b979650505050505050565b6060831561237f5782516000036123785773ffffffffffffffffffffffffffffffffffffffff85163b612378576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610471565b50816121c8565b6121c883838151156123945781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161047191906126a9565b6000602082840312156123da57600080fd5b5035919050565b600080604083850312156123f457600080fd5b50508035926020909101359150565b73ffffffffffffffffffffffffffffffffffffffff81168114610a9757600080fd5b60008060006060848603121561243a57600080fd5b8335925060208401359150604084013561245381612403565b809150509250925092565b6000806040838503121561247157600080fd5b82359150602083013561248381612403565b809150509250929050565b6000806000606084860312156124a357600080fd5b8335925060208401356124b581612403565b9150604084013561245381612403565b6000602082840312156124d757600080fd5b81356124e281612403565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561257f5761257f612518565b500290565b6000826125ba577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000828210156125d1576125d1612518565b500390565b6000602082840312156125e857600080fd5b5051919050565b6000821982111561260257612602612518565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361263857612638612518565b5060010190565b60005b8381101561265a578181015183820152602001612642565b838111156120555750506000910152565b6000825161267d81846020870161263f565b9190910192915050565b60006020828403121561269957600080fd5b815180151581146124e257600080fd5b60208152600082518060208401526126c881604085016020870161263f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220f9213e566d71171576c98705314df42d0fd95cd115ce2205c3b2eadf4aebff5e64736f6c634300080e0033000000000000000000000000f3df0a31ec5ea438150987805e841f960b9471b60000000000000000000000000000000000000000000000000000000000000001
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101775760003560e01c80638a1017ed116100d8578063ab7de0981161008c578063e1a4e72a11610066578063e1a4e72a1461036f578063e2bbb15814610382578063f2fde38b1461039557600080fd5b8063ab7de09814610336578063bb872b4a14610349578063ddc632621461035c57600080fd5b80638da5cb5b116100bd5780638da5cb5b146102be57806393f1a40b146102dc57806398969e821461032357600080fd5b80638a1017ed146102a25780638ae39cac146102b557600080fd5b806351eb05a61161012f578063630b5ba111610114578063630b5ba114610277578063715018a61461027f57806388c4cb361461028757600080fd5b806351eb05a6146102515780635312ea8e1461026457600080fd5b806317caf6f11161016057806317caf6f1146101e7578063228cb733146101f0578063441a3e701461023c57600080fd5b8063081e3eda1461017c5780631526fe2714610193575b600080fd5b6004545b6040519081526020015b60405180910390f35b6101a66101a13660046123c8565b6103a8565b6040805173ffffffffffffffffffffffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a00161018a565b61018060035481565b6102177f000000000000000000000000f3df0a31ec5ea438150987805e841f960b9471b681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161018a565b61024f61024a3660046123e1565b610403565b005b61024f61025f3660046123c8565b610774565b61024f6102723660046123c8565b61090f565b61024f610a9a565b61024f610ac3565b61021773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b61024f6102b0366004612425565b610ad7565b61018060025481565b60005473ffffffffffffffffffffffffffffffffffffffff16610217565b61030e6102ea36600461245e565b60056020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161018a565b61030e61033136600461245e565b610ca2565b61024f61034436600461248e565b610f30565b61024f6103573660046123c8565b6112be565b61024f61036a3660046123c8565b611373565b61024f61037d3660046124c5565b6115ab565b61024f6103903660046123e1565b611787565b61024f6103a33660046124c5565b611a57565b600481815481106103b857600080fd5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff93841695509193909290911685565b61040b611b0b565b6000811161047a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20696e76616c69642076616c7565000000000000000000000000000060448201526064015b60405180910390fd5b61048382610774565b600033905060006004848154811061049d5761049d6124e9565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff908116845260018201548486015260028201548484015260038201546060850152600490910154811660808401528986529383528085209387168552929091529120805491925090841115610581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4d43573a2021616d6f756e7400000000000000000000000000000000000000006044820152606401610471565b805415610602576000816001015464e8d4a51000846060015184600001546105a99190612547565b6105b39190612584565b6105bd91906125bf565b905061060073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000f3df0a31ec5ea438150987805e841f960b9471b6168583611b7e565b505b8381600001600082825461061691906125bf565b90915550506060820151815464e8d4a510009161063291612547565b61063c9190612584565b6001820155608082015173ffffffffffffffffffffffffffffffffffffffff8116156106ef5781546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b1580156106d657600080fd5b505af11580156106ea573d6000803e3d6000fd5b505050505b82516107129073ffffffffffffffffffffffffffffffffffffffff168587611b7e565b858473ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688760405161075b91815260200190565b60405180910390a35050505061077060018055565b5050565b600060048281548110610789576107896124e9565b9060005260206000209060050201905080600201544311156107705780546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610813573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083791906125d6565b905080156108b657600082600201544361085191906125bf565b9050600060035484600101546002548461086b9190612547565b6108759190612547565b61087f9190612584565b9050826108918264e8d4a51000612547565b61089b9190612584565b8460030160008282546108ae91906125ef565b909155505050505b43600283018190556003830154604080518681526020810193909352820183905260608201527fb0a2ded49817748754bcca0474b24011f01d4574dd5c40e14197ffa2e6540fef906080015b60405180910390a1505050565b610917611b0b565b6000339050600060048381548110610931576109316124e9565b600091825260208083208684526005808352604080862073ffffffffffffffffffffffffffffffffffffffff891680885294529485902080549551919094029091019450919286927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595916109a89190815260200190565b60405180910390a3805460008083556001830155600483015473ffffffffffffffffffffffffffffffffffffffff168015610a66576040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526000602483015282169063560e39b290604401600060405180830381600087803b158015610a4d57600080fd5b505af1158015610a61573d6000803e3d6000fd5b505050505b8354610a899073ffffffffffffffffffffffffffffffffffffffff168684611b7e565b5050505050610a9760018055565b50565b60045460005b8181101561077057610ab181610774565b80610abb81612607565b915050610aa0565b610acb611c57565b610ad56000611cd8565b565b610adf611c57565b600060048481548110610af457610af46124e9565b9060005260206000209060050201905082816001015414610b3757806001015483600354610b2291906125ef565b610b2c91906125bf565b600355600181018390555b600481015473ffffffffffffffffffffffffffffffffffffffff838116911614610c425773ffffffffffffffffffffffffffffffffffffffff821615610bff576040517f560e39b2000000000000000000000000000000000000000000000000000000008152600060048201819052602482015273ffffffffffffffffffffffffffffffffffffffff83169063560e39b290604401600060405180830381600087803b158015610be657600080fd5b505af1158015610bfa573d6000803e3d6000fd5b505050505b6004810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84161790555b6004810154604080518681526020810186905273ffffffffffffffffffffffffffffffffffffffff90921682820152517fff38300b7866933a8f16457ac835b1f4c31c3ac59d4b179b65a044b2d49cd09e9181900360600190a150505050565b600080600060048581548110610cba57610cba6124e9565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff9081168452600182015484860152600282015484840152600382015460608501908152600492830154821660808601528c88529585528287208b821688529094528186209451835192517f70a08231000000000000000000000000000000000000000000000000000000008152309281019290925292965093949193919216906370a0823190602401602060405180830381865afa158015610d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db791906125d6565b9050836040015143118015610dcb57508015155b15610e3b576000846040015143610de291906125bf565b90506000600354866020015160025484610dfc9190612547565b610e069190612547565b610e109190612584565b905082610e228264e8d4a51000612547565b610e2c9190612584565b610e3690856125ef565b935050505b6001830154835464e8d4a5100090610e54908590612547565b610e5e9190612584565b610e6891906125bf565b608085015190965073ffffffffffffffffffffffffffffffffffffffff8116610e92576000610f22565b6040517fc031a66f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015282169063c031a66f90602401602060405180830381865afa158015610efe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2291906125d6565b955050505050509250929050565b610f38611c57565b610f43600683611d4d565b15610faa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20616c726561647920616464656400000000000000000000000000006044820152606401610471565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015611014573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103891906125d6565b5073ffffffffffffffffffffffffffffffffffffffff8116156110dd576040517f560e39b2000000000000000000000000000000000000000000000000000000008152600060048201819052602482015273ffffffffffffffffffffffffffffffffffffffff82169063560e39b290604401600060405180830381600087803b1580156110c457600080fd5b505af11580156110d8573d6000803e3d6000fd5b505050505b82600360008282546110ef91906125ef565b90915550506040805160a08101825273ffffffffffffffffffffffffffffffffffffffff8085168252602082018681524393830193845260006060840181815286841660808601908152600480546001810182559352945160059092027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810180549386167fffffffffffffffffffffffff000000000000000000000000000000000000000094851617905592517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c84015594517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d83015593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e82015591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f9092018054929091169190921617905561124b600683611d81565b507fe72dff05c5a9817b99753fffdec6b7800cc743c2f4b1fbc3eeb93983712a2a46600161127860045490565b61128291906125bf565b604080519182526020820186905273ffffffffffffffffffffffffffffffffffffffff8086169183019190915283166060820152608001610902565b6112c6611c57565b60008111611330576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642076616c7565000000000000000000000000000000000000006044820152606401610471565b611338610a9a565b60028190556040518181527f5ed0ffa545a9eae0edd36b74378d16454cf385281383c7632ad5b2ebf3ab2b929060200160405180910390a150565b61137b611b0b565b61138481610774565b600081815260056020908152604080832033808552925282206004805492939192859081106113b5576113b56124e9565b600091825260208083206040805160a0810182526005909402909101805473ffffffffffffffffffffffffffffffffffffffff90811685526001820154938501939093526002810154918401919091526003810154606084018190526004909101549091166080830152845491935064e8d4a51000916114359190612547565b61143f9190612584565b9050600083600101548261145391906125bf565b60018501839055905061149d73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000f3df0a31ec5ea438150987805e841f960b9471b6168683611b7e565b608083015173ffffffffffffffffffffffffffffffffffffffff81161561154b5784546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b15801561153257600080fd5b505af1158015611546573d6000803e3d6000fd5b505050505b868673ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249548460405161159491815260200190565b60405180910390a3505050505050610a9760018055565b6115b3611c57565b73ffffffffffffffffffffffffffffffffffffffff8116611630576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4d43573a202161646472657373000000000000000000000000000000000000006044820152606401610471565b61163b600682611d4d565b156116a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20217374616b65645f746f6b656e00000000000000000000000000006044820152606401610471565b7fffffffffffffffffffffffff111111111111111111111111111111111111111273ffffffffffffffffffffffffffffffffffffffff8216016116e957610a973347611da3565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015611756573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177a91906125d6565b9050610770823383611e87565b61178f611b0b565b61179882610774565b60003390506000600484815481106117b2576117b26124e9565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff908116845260018201548486015260028201548484015260038201546060850152600490910154811660808401528986529383528085209387168552929091529120805491925090156118fd576000816001015464e8d4a51000846060015184600001546118539190612547565b61185d9190612584565b61186791906125bf565b90506118aa73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000f3df0a31ec5ea438150987805e841f960b9471b6168583611b7e565b858473ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954836040516118f391815260200190565b60405180910390a3505b8381600001600082825461191191906125ef565b90915550506060820151815464e8d4a510009161192d91612547565b6119379190612584565b6001820155608082015173ffffffffffffffffffffffffffffffffffffffff8116156119ea5781546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b1580156119d157600080fd5b505af11580156119e5573d6000803e3d6000fd5b505050505b8251611a0e9073ffffffffffffffffffffffffffffffffffffffff16853088611ff7565b858473ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a158760405161075b91815260200190565b611a5f611c57565b73ffffffffffffffffffffffffffffffffffffffff8116611b02576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610471565b610a9781611cd8565b600260015403611b77576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610471565b6002600155565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052611c529084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261205b565b505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610ad5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610471565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260018301602052604081205415155b90505b92915050565b6000611d788373ffffffffffffffffffffffffffffffffffffffff841661216a565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051611dda919061266b565b60006040518083038185875af1925050503d8060008114611e17576040519150601f19603f3d011682016040523d82523d6000602084013e611e1c565b606091505b5050905080611c52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f53544500000000000000000000000000000000000000000000000000000000006044820152606401610471565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691611f1e919061266b565b6000604051808303816000865af19150503d8060008114611f5b576040519150601f19603f3d011682016040523d82523d6000602084013e611f60565b606091505b5091509150818015611f8a575080511580611f8a575080806020019051810190611f8a9190612687565b611ff0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600260248201527f53540000000000000000000000000000000000000000000000000000000000006044820152606401610471565b5050505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526120559085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611bd0565b50505050565b60006120bd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166121b99092919063ffffffff16565b90508051600014806120de5750808060200190518101906120de9190612687565b611c52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610471565b60008181526001830160205260408120546121b157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d7b565b506000611d7b565b60606121c884846000856121d0565b949350505050565b606082471015612262576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610471565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161228b919061266b565b60006040518083038185875af1925050503d80600081146122c8576040519150601f19603f3d011682016040523d82523d6000602084013e6122cd565b606091505b50915091506122de878383876122e9565b979650505050505050565b6060831561237f5782516000036123785773ffffffffffffffffffffffffffffffffffffffff85163b612378576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610471565b50816121c8565b6121c883838151156123945781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161047191906126a9565b6000602082840312156123da57600080fd5b5035919050565b600080604083850312156123f457600080fd5b50508035926020909101359150565b73ffffffffffffffffffffffffffffffffffffffff81168114610a9757600080fd5b60008060006060848603121561243a57600080fd5b8335925060208401359150604084013561245381612403565b809150509250925092565b6000806040838503121561247157600080fd5b82359150602083013561248381612403565b809150509250929050565b6000806000606084860312156124a357600080fd5b8335925060208401356124b581612403565b9150604084013561245381612403565b6000602082840312156124d757600080fd5b81356124e281612403565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561257f5761257f612518565b500290565b6000826125ba577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000828210156125d1576125d1612518565b500390565b6000602082840312156125e857600080fd5b5051919050565b6000821982111561260257612602612518565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361263857612638612518565b5060010190565b60005b8381101561265a578181015183820152602001612642565b838111156120555750506000910152565b6000825161267d81846020870161263f565b9190910192915050565b60006020828403121561269957600080fd5b815180151581146124e257600080fd5b60208152600082518060208401526126c881604085016020870161263f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220f9213e566d71171576c98705314df42d0fd95cd115ce2205c3b2eadf4aebff5e64736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f3df0a31ec5ea438150987805e841f960b9471b60000000000000000000000000000000000000000000000000000000000000001
-----Decoded View---------------
Arg [0] : _reward (address): 0xF3df0A31ec5EA438150987805e841F960b9471b6
Arg [1] : _rewardPerBlock (uint256): 1
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000f3df0a31ec5ea438150987805e841f960b9471b6
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000001
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
OP | 100.00% | $1.08 | 7,674.7756 | $8,292.76 |
[ 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.