More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 351 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 19990660 | 82 days ago | IN | 0 ETH | 0.0025748 | ||||
Harvest All Rewa... | 19990620 | 82 days ago | IN | 0 ETH | 0.00360972 | ||||
Deposit | 18873369 | 238 days ago | IN | 0 ETH | 0.0015399 | ||||
Withdraw And Har... | 17927950 | 371 days ago | IN | 0 ETH | 0.00371354 | ||||
Withdraw And Har... | 17304097 | 458 days ago | IN | 0 ETH | 0.00279036 | ||||
Deposit | 17133190 | 483 days ago | IN | 0 ETH | 0.00469095 | ||||
Withdraw And Har... | 17098440 | 487 days ago | IN | 0 ETH | 0.0036189 | ||||
Deposit | 17094593 | 488 days ago | IN | 0 ETH | 0.0042478 | ||||
Withdraw And Har... | 17057295 | 493 days ago | IN | 0 ETH | 0.00222112 | ||||
Withdraw And Har... | 17039571 | 496 days ago | IN | 0 ETH | 0.00381419 | ||||
Deposit | 17032496 | 497 days ago | IN | 0 ETH | 0.00258597 | ||||
Deposit | 16988123 | 503 days ago | IN | 0 ETH | 0.0034213 | ||||
Withdraw And Har... | 16973365 | 505 days ago | IN | 0 ETH | 0.00146044 | ||||
Harvest | 16973350 | 505 days ago | IN | 0 ETH | 0.00199491 | ||||
Harvest | 16973315 | 505 days ago | IN | 0 ETH | 0.00211557 | ||||
Withdraw And Har... | 16970069 | 506 days ago | IN | 0 ETH | 0.00354495 | ||||
Withdraw And Har... | 16961801 | 507 days ago | IN | 0 ETH | 0.00220503 | ||||
Deposit | 16951435 | 508 days ago | IN | 0 ETH | 0.00048204 | ||||
Emergency Withdr... | 16905907 | 515 days ago | IN | 0 ETH | 0.00170999 | ||||
Harvest All Rewa... | 16905881 | 515 days ago | IN | 0 ETH | 0.00113639 | ||||
Withdraw And Har... | 16895311 | 516 days ago | IN | 0 ETH | 0.00145497 | ||||
Withdraw And Har... | 16866338 | 520 days ago | IN | 0 ETH | 0.00211848 | ||||
Harvest | 16827694 | 526 days ago | IN | 0 ETH | 0.00427331 | ||||
Withdraw And Har... | 16826285 | 526 days ago | IN | 0 ETH | 0.00636862 | ||||
Withdraw And Har... | 16822730 | 526 days ago | IN | 0 ETH | 0.00243048 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MasterChef
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "../interfaces/IRewarder.sol"; import "../interfaces/IFundDistributor.sol"; import "../interfaces/ITokenUtilityModule.sol"; /* IronChef is a fork from Sushi's MiniChef v2 with slightly modification. 1. Rewards will be transferred from a seperated contract so that it will be more flexible to switch between: [mint reward token directly] OR [transfer them instead] 2. Add a Harvest all function to quickly harvest rewards from all the deposited pools Sharedstakes masterchef is in turn a fork of ironchef We add a TokenUtilityModule to boost/reduce user rewards depending on variables such as veSGT & NFTs Sushi: https://github.com/sushiswap/sushiswap/blob/canary/contracts/MasterChefV2.sol Iron: https://github.com/chimera-defi/iron-core-v2/blob/master/contracts/IronChef.sol Sharedstake: https://github.com/chimera-defi/SharedDeposit/blob/main/contracts/governance/MasterChef.sol */ contract MasterChef is Ownable { using SafeERC20 for IERC20; struct UserInfo { uint256 amount; int256 rewardDebt; } struct PoolInfo { uint256 accRewardPerShare; uint256 lastRewardTime; uint256 allocPoint; } IERC20 public reward; IFundDistributor public fund; /// @notice Info of each MCV2 pool. PoolInfo[] public poolInfo; /// @notice Address of the LP token for each MCV2 pool. IERC20[] public lpToken; /// @notice Address of each `IRewarder` contract in MCV2. IRewarder[] public rewarder; /// @notice Info of each user that stakes LP tokens. mapping(uint256 => mapping(address => UserInfo)) public userInfo; /// @dev Total allocation points. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoint = 0; uint256 public rewardPerSecond; uint256 public constant ACC_REWARD_PRECISION = 1e12; // Additions ITokenUtilityModule public tokenUtilityModule; /* =============== EVENTS ==================== */ event Deposit(address indexed user, uint256 indexed pid, uint256 amount, address indexed to); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to); event Harvest(address indexed user, uint256 indexed pid, uint256 amount); event LogPoolAddition(uint256 indexed pid, uint256 allocPoint, IERC20 indexed lpToken, IRewarder indexed rewarder); event LogSetPool(uint256 indexed pid, uint256 allocPoint, IRewarder indexed rewarder, bool overwrite); event LogUpdatePool(uint256 indexed pid, uint256 lastRewardTime, uint256 lpSupply, uint256 accRewardPerShare); event LogRewardPerSecond(uint256 rewardPerSecond); event PoolFundChanged(address indexed fund); event TokenUtilityModuleChanged(address indexed fund); event ErrorIgnored(); constructor( IERC20 _reward, IFundDistributor _fund, ITokenUtilityModule _tum ) { reward = _reward; fund = _fund; tokenUtilityModule = _tum; } /* ========== PUBLIC FUNCTIONS ========== */ /// @notice Update reward variables for all pools. Be careful of gas spending! /// @param pids Pool IDs of all to be updated. Make sure to update all active pools. function massUpdatePools(uint256[] calldata pids) external { uint256 len = pids.length; for (uint256 i = 0; i < len; ++i) { updatePool(pids[i]); } } /// @notice Deposit LP tokens to MCV2 for reward allocation. /// @param pid The index of the pool. See `poolInfo`. /// @param amount LP token amount to deposit. /// @param to The receiver of `amount` deposit benefit. function deposit( uint256 pid, uint256 amount, address to ) external { PoolInfo memory pool = updatePool(pid); UserInfo storage user = userInfo[pid][to]; // Effects user.amount += amount; user.rewardDebt += int256((amount * pool.accRewardPerShare) / ACC_REWARD_PRECISION); // Interactions IRewarder _rewarder = rewarder[pid]; if (address(_rewarder) != address(0)) { _rewarder.onReward(pid, to, to, 0, user.amount); } lpToken[pid].safeTransferFrom(msg.sender, address(this), amount); emit Deposit(msg.sender, pid, amount, to); } /// @notice Withdraw LP tokens from MCV2. /// @param pid The index of the pool. See `poolInfo`. /// @param amount LP token amount to withdraw. /// @param to Receiver of the LP tokens. function withdraw( uint256 pid, uint256 amount, address to ) external { PoolInfo memory pool = updatePool(pid); UserInfo storage user = userInfo[pid][msg.sender]; // Effects user.rewardDebt -= int256((amount * pool.accRewardPerShare) / ACC_REWARD_PRECISION); user.amount -= amount; // Interactions IRewarder _rewarder = rewarder[pid]; if (address(_rewarder) != address(0)) { _rewarder.onReward(pid, msg.sender, to, 0, user.amount); } lpToken[pid].safeTransfer(to, amount); emit Withdraw(msg.sender, pid, amount, to); } /// @notice Harvest proceeds for transaction sender to `to`. /// @param pid The index of the pool. See `poolInfo`. /// @param to Receiver of rewards. function harvest(uint256 pid, address to) external { _harvest(pid, to); } /// @notice Withdraw LP tokens from MCV2 and harvest proceeds for transaction sender to `to`. /// @param pid The index of the pool. See `poolInfo`. /// @param amount LP token amount to withdraw. /// @param to Receiver of the LP tokens and rewards. function withdrawAndHarvest( uint256 pid, uint256 amount, address to ) external { PoolInfo memory pool = updatePool(pid); UserInfo storage user = userInfo[pid][msg.sender]; int256 accumulatedReward = int256((user.amount * pool.accRewardPerShare) / ACC_REWARD_PRECISION); uint256 _pendingReward = uint256(accumulatedReward - user.rewardDebt); _pendingReward = _applyBoost(to, _pendingReward, user.amount); // Effects user.rewardDebt = accumulatedReward - int256((amount * pool.accRewardPerShare) / ACC_REWARD_PRECISION); user.amount -= amount; // Interactions fund.distributeTo(to, _pendingReward); IRewarder _rewarder = rewarder[pid]; if (address(_rewarder) != address(0)) { _rewarder.onReward(pid, msg.sender, to, _pendingReward, user.amount); } lpToken[pid].safeTransfer(to, amount); emit Withdraw(msg.sender, pid, amount, to); emit Harvest(msg.sender, pid, _pendingReward); } /// @notice Withdraw without caring about rewards. EMERGENCY ONLY. /// @param pid The index of the pool. See `poolInfo`. /// @param to Receiver of the LP tokens. function emergencyWithdraw(uint256 pid, address to) external { UserInfo storage user = userInfo[pid][msg.sender]; uint256 amount = user.amount; user.amount = 0; user.rewardDebt = 0; IRewarder _rewarder = rewarder[pid]; if (address(_rewarder) != address(0)) { try _rewarder.onReward(pid, msg.sender, to, 0, 0) {} catch { emit ErrorIgnored(); } } // Note: transfer can fail or succeed if `amount` is zero. lpToken[pid].safeTransfer(to, amount); emit EmergencyWithdraw(msg.sender, pid, amount, to); } function harvestAllRewards(address to) external { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { if (userInfo[pid][msg.sender].amount > 0) { _harvest(pid, to); } } } // External views /// @notice Returns the number of MCV2 pools. function poolLength() external view returns (uint256 pools) { pools = poolInfo.length; } /// @notice View function to see pending reward on frontend. /// @param _pid The index of the pool. See `poolInfo`. /// @param _user Address of user. /// @return pending reward for a given user. function pendingReward(uint256 _pid, address _user) external view returns (uint256 pending) { PoolInfo memory pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accRewardPerShare = pool.accRewardPerShare; uint256 lpSupply = lpToken[_pid].balanceOf(address(this)); if (block.timestamp > pool.lastRewardTime && lpSupply != 0) { uint256 time = block.timestamp - pool.lastRewardTime; uint256 rewardAmount = (time * rewardPerSecond * pool.allocPoint) / totalAllocPoint; accRewardPerShare += (rewardAmount * ACC_REWARD_PRECISION) / lpSupply; } pending = uint256(int256((user.amount * accRewardPerShare) / ACC_REWARD_PRECISION) - user.rewardDebt); pending = _applyBoost(_user, pending, user.amount); return pending; } /// @notice Update reward variables of the given pool. /// @param pid The index of the pool. See `poolInfo`. /// @return pool Returns the pool that was updated. function updatePool(uint256 pid) public returns (PoolInfo memory pool) { pool = poolInfo[pid]; if (block.timestamp > pool.lastRewardTime) { uint256 lpSupply = lpToken[pid].balanceOf(address(this)); if (lpSupply > 0) { uint256 time = block.timestamp - pool.lastRewardTime; uint256 rewardAmount = (time * rewardPerSecond * pool.allocPoint) / totalAllocPoint; pool.accRewardPerShare += (rewardAmount * ACC_REWARD_PRECISION) / lpSupply; } pool.lastRewardTime = block.timestamp; poolInfo[pid] = pool; emit LogUpdatePool(pid, pool.lastRewardTime, lpSupply, pool.accRewardPerShare); } } /* ========== RESTRICTED FUNCTIONS ========== */ /// @notice Add a new LP to the pool. Can only be called by the owner. /// DO NOT add the same LP token more than once. Rewards will be messed up if you do. /// @param allocPoint AP of the new pool. /// @param _lpToken Address of the LP ERC-20 token. /// @param _rewarder Address of the rewarder delegate. function add( uint256 allocPoint, IERC20 _lpToken, IRewarder _rewarder ) public onlyOwner { _checkPoolDuplicate(_lpToken); totalAllocPoint += allocPoint; lpToken.push(_lpToken); rewarder.push(_rewarder); poolInfo.push(PoolInfo({allocPoint: allocPoint, lastRewardTime: block.timestamp, accRewardPerShare: 0})); emit LogPoolAddition(lpToken.length - 1, allocPoint, _lpToken, _rewarder); } /// @notice Update the given pool's reward allocation point and `IRewarder` contract. Can only be called by the owner. /// @param _pid The index of the pool. See `poolInfo`. /// @param _allocPoint New AP of the pool. /// @param _rewarder Address of the rewarder delegate. /// @param overwrite True if _rewarder should be `set`. Otherwise `_rewarder` is ignored. function set( uint256 _pid, uint256 _allocPoint, IRewarder _rewarder, bool overwrite ) public onlyOwner { totalAllocPoint = totalAllocPoint - poolInfo[_pid].allocPoint + _allocPoint; poolInfo[_pid].allocPoint = _allocPoint; if (overwrite) { rewarder[_pid] = _rewarder; } emit LogSetPool(_pid, _allocPoint, overwrite ? _rewarder : rewarder[_pid], overwrite); } /// @notice Sets the reward per second to be distributed. Can only be called by the owner. /// @param _rewardPerSecond The amount of reward to be distributed per second. function setRewardPerSecond(uint256 _rewardPerSecond) public onlyOwner { rewardPerSecond = _rewardPerSecond; emit LogRewardPerSecond(_rewardPerSecond); } /// @notice Set the new fund contract. /// @param _fund The address of new fund contract. function setFund(IFundDistributor _fund) public onlyOwner { fund = _fund; emit PoolFundChanged(address(_fund)); } /// @notice Set the new token utility module /// @param _tum The address of token utility module used to get the boost function setTokenUtilityModule(ITokenUtilityModule _tum) public onlyOwner { tokenUtilityModule = _tum; emit TokenUtilityModuleChanged(address(_tum)); } /* ========== INTERNAL FUNCTIONS ========== */ function _harvest(uint256 pid, address to) internal { PoolInfo memory pool = updatePool(pid); UserInfo storage user = userInfo[pid][msg.sender]; int256 accumulatedReward = int256((user.amount * pool.accRewardPerShare) / ACC_REWARD_PRECISION); uint256 _pendingReward = uint256(accumulatedReward - user.rewardDebt); _pendingReward = _applyBoost(to, _pendingReward, user.amount); // Effects user.rewardDebt = accumulatedReward; // Interactions fund.distributeTo(to, _pendingReward); IRewarder _rewarder = rewarder[pid]; if (address(_rewarder) != address(0)) { _rewarder.onReward(pid, msg.sender, to, _pendingReward, user.amount); } emit Harvest(msg.sender, pid, _pendingReward); } function _applyBoost( address _user, uint256 _pendingReward, uint256 _supplyAmt ) internal view returns (uint256 boostedAmount) { if (address(tokenUtilityModule) == address(0)) { boostedAmount = _pendingReward; } else { boostedAmount = tokenUtilityModule.getBoost(_user, address(this), _pendingReward, _supplyAmt); } } function _checkPoolDuplicate(IERC20 _lpToken) internal view { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { require(lpToken[pid] != _lpToken, "MC:AE"); } } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IRewarder { function onReward( uint256 pid, address user, address recipient, uint256 rewardAmount, uint256 newLpAmount ) external; function pendingTokens( uint256 pid, address user, uint256 rewardAmount ) external view returns (IERC20[] memory, uint256[] memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IFundDistributor { function distributeTo(address _receiver, uint256 _amount) external; }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; // A benefits module for token/nft holders // Externally calculate boosts and bonuses interface ITokenUtilityModule { // Allow epoch length reduction function getEpochLength( address _sender, address _requestContract, uint256 amt, uint256 defaultVal ) external view returns (uint256); function getAdminFee( address _address, address _requestContract, uint256 amt, uint256 defaultVal ) external view returns (uint256); function getWithdrawalTotal( address _address, address _requestContract, uint256 amt, uint256 defaultVal ) external view returns (uint256); function getBoost( address _address, address _requestContract, uint256 amt, uint256 defaultVal ) external view returns (uint256); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_reward","type":"address"},{"internalType":"contract IFundDistributor","name":"_fund","type":"address"},{"internalType":"contract ITokenUtilityModule","name":"_tum","type":"address"}],"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"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"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"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[],"name":"ErrorIgnored","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":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":true,"internalType":"contract IERC20","name":"lpToken","type":"address"},{"indexed":true,"internalType":"contract IRewarder","name":"rewarder","type":"address"}],"name":"LogPoolAddition","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardPerSecond","type":"uint256"}],"name":"LogRewardPerSecond","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":true,"internalType":"contract IRewarder","name":"rewarder","type":"address"},{"indexed":false,"internalType":"bool","name":"overwrite","type":"bool"}],"name":"LogSetPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accRewardPerShare","type":"uint256"}],"name":"LogUpdatePool","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":true,"internalType":"address","name":"fund","type":"address"}],"name":"PoolFundChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fund","type":"address"}],"name":"TokenUtilityModuleChanged","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"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"ACC_REWARD_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","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"},{"internalType":"address","name":"to","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fund","outputs":[{"internalType":"contract IFundDistributor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"harvestAllRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lpToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pids","type":"uint256[]"}],"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":"pending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"allocPoint","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"pools","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":"rewardPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewarder","outputs":[{"internalType":"contract IRewarder","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IRewarder","name":"_rewarder","type":"address"},{"internalType":"bool","name":"overwrite","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IFundDistributor","name":"_fund","type":"address"}],"name":"setFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"}],"name":"setRewardPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ITokenUtilityModule","name":"_tum","type":"address"}],"name":"setTokenUtilityModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenUtilityModule","outputs":[{"internalType":"contract ITokenUtilityModule","name":"","type":"address"}],"stateMutability":"view","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":[{"components":[{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"allocPoint","type":"uint256"}],"internalType":"struct MasterChef.PoolInfo","name":"pool","type":"tuple"}],"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":"int256","name":"rewardDebt","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawAndHarvest","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260006007553480156200001657600080fd5b506040516200209b3803806200209b8339810160408190526200003991620000d7565b620000443362000087565b600180546001600160a01b039485166001600160a01b03199182161790915560028054938516938216939093179092556009805491909316911617905562000144565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600060608486031215620000ed57600080fd5b8351620000fa816200012b565b60208501519093506200010d816200012b565b604085015190925062000120816200012b565b809150509250925092565b6001600160a01b03811681146200014157600080fd5b50565b611f4780620001546000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806388bba42f116100f9578063b60d428811610097578063d1c6a23111610071578063d1c6a231146103ff578063f2fde38b1461040b578063faa807171461041e578063fbe6cf6a1461043157600080fd5b8063b60d4288146103c6578063c346253d146103d9578063d1abb907146103ec57600080fd5b80638f10369a116100d35780638f10369a1461035057806393f1a40b1461035957806398969e82146103a0578063ab7de098146103b357600080fd5b806388bba42f146103195780638da5cb5b1461032c5780638dbdbe6d1461033d57600080fd5b80632f940c701161016657806357a5b58c1161014057806357a5b58c146102d857806366da5815146102eb578063715018a6146102fe57806378ed5d1f1461030657600080fd5b80632f940c701461027d578063456c987e1461029057806351eb05a6146102a357600080fd5b80631526fe27116101a25780631526fe271461020857806317caf6f11461023657806318fccc761461023f578063228cb7331461025257600080fd5b8063081e3eda146101c95780630ad58d2f146101e05780630e21750f146101f5575b600080fd5b6003545b6040519081526020015b60405180910390f35b6101f36101ee366004611c60565b610444565b005b6101f3610203366004611b0d565b6105e1565b61021b610216366004611bbc565b61065e565b604080519384526020840192909252908201526060016101d7565b6101cd60075481565b6101f361024d366004611bee565b610691565b600154610265906001600160a01b031681565b6040516001600160a01b0390911681526020016101d7565b6101f361028b366004611bee565b61069f565b600954610265906001600160a01b031681565b6102b66102b1366004611bbc565b6107f4565b60408051825181526020808401519082015291810151908201526060016101d7565b6101f36102e6366004611b2a565b610a0e565b6101f36102f9366004611bbc565b610a52565b6101f3610ab7565b610265610314366004611bbc565b610aed565b6101f3610327366004611c8e565b610b17565b6000546001600160a01b0316610265565b6101f361034b366004611c60565b610c7e565b6101cd60085481565b61038b610367366004611bee565b60066020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101d7565b6101cd6103ae366004611bee565b610e13565b6101f36103c1366004611c1e565b610fe6565b600254610265906001600160a01b031681565b6102656103e7366004611bbc565b61119f565b6101f36103fa366004611c60565b6111af565b6101cd64e8d4a5100081565b6101f3610419366004611b0d565b61140a565b6101f361042c366004611b0d565b6114a5565b6101f361043f366004611b0d565b611519565b600061044f846107f4565b6000858152600660209081526040808320338452909152902081519192509064e8d4a510009061047f9086611e06565b6104899190611de4565b81600101600082825461049c9190611e25565b90915550508054849082906000906104b5908490611e64565b925050819055506000600586815481106104d1576104d1611ed8565b6000918252602090912001546001600160a01b0316905080156105575781546040516344af0fa760e01b81526001600160a01b038316916344af0fa791610524918a9133918a9160009190600401611d5c565b600060405180830381600087803b15801561053e57600080fd5b505af1158015610552573d6000803e3d6000fd5b505050505b61058b84866004898154811061056f5761056f611ed8565b6000918252602090912001546001600160a01b03169190611565565b836001600160a01b031686336001600160a01b03167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec2132886040516105d191815260200190565b60405180910390a4505050505050565b6000546001600160a01b031633146106145760405162461bcd60e51b815260040161060b90611d27565b60405180910390fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040517f1bbced6cc5125dba763681b1a276a950f551621431f63fdb5b2b180da1aa2ae390600090a250565b6003818154811061066e57600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b61069b82826115c8565b5050565b600082815260066020908152604080832033845290915281208054828255600182018390556005805492939192869081106106dc576106dc611ed8565b6000918252602090912001546001600160a01b031690508015610787576040516344af0fa760e01b81526001600160a01b038216906344af0fa79061072e908890339089906000908190600401611d5c565b600060405180830381600087803b15801561074857600080fd5b505af1925050508015610759575060015b610787576040517fddff362d6e611b982871a2c3957d95a520914186e208a557ac040c8b652a9d6d90600090a15b61079f84836004888154811061056f5761056f611ed8565b836001600160a01b031685336001600160a01b03167f2cac5e20e1541d836381527a43f651851e302817b71dc8e810284e69210c1c6b856040516107e591815260200190565b60405180910390a45050505050565b61081860405180606001604052806000815260200160008152602001600081525090565b6003828154811061082b5761082b611ed8565b600091825260209182902060408051606081018252600390930290910180548352600181015493830184905260020154908201529150421115610a095760006004838154811061087d5761087d611ed8565b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156108c957600080fd5b505afa1580156108dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109019190611bd5565b9050801561097a57600082602001514261091b9190611e64565b905060006007548460400151600854846109359190611e06565b61093f9190611e06565b6109499190611de4565b90508261095b64e8d4a5100083611e06565b6109659190611de4565b84518590610974908390611dcc565b90525050505b426020830152600380548391908590811061099757610997611ed8565b600091825260209182902083516003929092020190815582820151600182015560409283015160029091015583810151845183519182529181018490529182015283907fcb7325664a4a3b7c7223eefc492a97ca4fdf94d46884621e5a8fae5a04b2b9d29060600160405180910390a2505b919050565b8060005b81811015610a4c57610a3b848483818110610a2f57610a2f611ed8565b905060200201356107f4565b50610a4581611ea7565b9050610a12565b50505050565b6000546001600160a01b03163314610a7c5760405162461bcd60e51b815260040161060b90611d27565b60088190556040518181527fde89cb17ac7f58f94792b3e91e086ed85403819c24ceea882491f960ccb1a2789060200160405180910390a150565b6000546001600160a01b03163314610ae15760405162461bcd60e51b815260040161060b90611d27565b610aeb600061177d565b565b60048181548110610afd57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b03163314610b415760405162461bcd60e51b815260040161060b90611d27565b8260038581548110610b5557610b55611ed8565b906000526020600020906003020160020154600754610b749190611e64565b610b7e9190611dcc565b6007819055508260038581548110610b9857610b98611ed8565b9060005260206000209060030201600201819055508015610bf6578160058581548110610bc757610bc7611ed8565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b80610c285760058481548110610c0e57610c0e611ed8565b6000918252602090912001546001600160a01b0316610c2a565b815b6001600160a01b0316847f95895a6ab1df54420d241b55243258a33e61b2194db66c1179ec521aae8e18658584604051610c709291909182521515602082015260400190565b60405180910390a350505050565b6000610c89846107f4565b60008581526006602090815260408083206001600160a01b0387168452909152812080549293509185918391610cc0908490611dcc565b9091555050815164e8d4a5100090610cd89086611e06565b610ce29190611de4565b816001016000828254610cf59190611d8b565b92505081905550600060058681548110610d1157610d11611ed8565b6000918252602090912001546001600160a01b031690508015610d975781546040516344af0fa760e01b81526001600160a01b038316916344af0fa791610d64918a918991829160009190600401611d5c565b600060405180830381600087803b158015610d7e57600080fd5b505af1158015610d92573d6000803e3d6000fd5b505050505b610dcd33308760048a81548110610db057610db0611ed8565b6000918252602090912001546001600160a01b03169291906117cd565b836001600160a01b031686336001600160a01b03167f02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b47886040516105d191815260200190565b60008060038481548110610e2957610e29611ed8565b60009182526020808320604080516060810182526003909402909101805484526001810154848401526002015483820152878452600682528084206001600160a01b038816855290915282208151600480549395509193909290919088908110610e9557610e95611ed8565b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610ee157600080fd5b505afa158015610ef5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f199190611bd5565b9050836020015142118015610f2d57508015155b15610f9d576000846020015142610f449190611e64565b90506000600754866040015160085484610f5e9190611e06565b610f689190611e06565b610f729190611de4565b905082610f8464e8d4a5100083611e06565b610f8e9190611de4565b610f989085611dcc565b935050505b6001830154835464e8d4a5100090610fb6908590611e06565b610fc09190611de4565b610fca9190611e25565b9450610fdb86868560000154611805565b979650505050505050565b6000546001600160a01b031633146110105760405162461bcd60e51b815260040161060b90611d27565b611019826118ba565b826007600082825461102b9190611dcc565b909155505060048054600181810183557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b90910180546001600160a01b038087166001600160a01b03199283168117909355600580548086019091557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001805491871691909216811790915560408051606081018252600080825242602083019081529282018a8152600380548089018255928190529251919092027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b81019190915591517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c830155517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d909101559254909161116791611e64565b6040518681527f81ee0f8c5c46e2cb41984886f77a84181724abb86c32a5f6de539b07509d45e59060200160405180910390a4505050565b60058181548110610afd57600080fd5b60006111ba846107f4565b6000858152600660209081526040808320338452909152812082518154939450909264e8d4a51000916111ec91611e06565b6111f69190611de4565b9050600082600101548261120a9190611e25565b905061121b85828560000154611805565b845190915064e8d4a51000906112319088611e06565b61123b9190611de4565b6112459083611e25565b600184015582548690849060009061125e908490611e64565b909155505060025460405163d66e57cd60e01b81526001600160a01b038781166004830152602482018490529091169063d66e57cd90604401600060405180830381600087803b1580156112b157600080fd5b505af11580156112c5573d6000803e3d6000fd5b505050506000600588815481106112de576112de611ed8565b6000918252602090912001546001600160a01b0316905080156113635783546040516344af0fa760e01b81526001600160a01b038316916344af0fa791611330918c9133918c91899190600401611d5c565b600060405180830381600087803b15801561134a57600080fd5b505af115801561135e573d6000803e3d6000fd5b505050505b61137b868860048b8154811061056f5761056f611ed8565b856001600160a01b031688336001600160a01b03167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec21328a6040516113c191815260200190565b60405180910390a4604051828152889033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a35050505050505050565b6000546001600160a01b031633146114345760405162461bcd60e51b815260040161060b90611d27565b6001600160a01b0381166114995760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161060b565b6114a28161177d565b50565b6000546001600160a01b031633146114cf5760405162461bcd60e51b815260040161060b90611d27565b600980546001600160a01b0319166001600160a01b0383169081179091556040517fa8070663a27d9ac0261ae55a7c5b808b9816f9bec5226ad5786e5d5acfa4680490600090a250565b60035460005b81811015611560576000818152600660209081526040808320338452909152902054156115505761155081846115c8565b61155981611ea7565b905061151f565b505050565b6040516001600160a01b03831660248201526044810182905261156090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611940565b60006115d3836107f4565b6000848152600660209081526040808320338452909152812082518154939450909264e8d4a510009161160591611e06565b61160f9190611de4565b905060008260010154826116239190611e25565b905061163485828560000154611805565b6001840183905560025460405163d66e57cd60e01b81526001600160a01b0388811660048301526024820184905292935091169063d66e57cd90604401600060405180830381600087803b15801561168b57600080fd5b505af115801561169f573d6000803e3d6000fd5b505050506000600587815481106116b8576116b8611ed8565b6000918252602090912001546001600160a01b03169050801561173d5783546040516344af0fa760e01b81526001600160a01b038316916344af0fa79161170a918b9133918c91899190600401611d5c565b600060405180830381600087803b15801561172457600080fd5b505af1158015611738573d6000803e3d6000fd5b505050505b604051828152879033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a350505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a4c9085906323b872dd60e01b90608401611591565b6009546000906001600160a01b031661181f5750816118b3565b600954604051633fb9c70b60e21b81526001600160a01b03868116600483015230602483015260448201869052606482018590529091169063fee71c2c9060840160206040518083038186803b15801561187857600080fd5b505afa15801561188c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b09190611bd5565b90505b9392505050565b60035460005b8181101561156057826001600160a01b0316600482815481106118e5576118e5611ed8565b6000918252602090912001546001600160a01b031614156119305760405162461bcd60e51b81526020600482015260056024820152644d433a414560d81b604482015260640161060b565b61193981611ea7565b90506118c0565b6000611995826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611a129092919063ffffffff16565b80519091501561156057808060200190518101906119b39190611b9f565b6115605760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161060b565b60606118b0848460008585843b611a6b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161060b565b600080866001600160a01b03168587604051611a879190611cd8565b60006040518083038185875af1925050503d8060008114611ac4576040519150601f19603f3d011682016040523d82523d6000602084013e611ac9565b606091505b5091509150610fdb82828660608315611ae35750816118b3565b825115611af35782518084602001fd5b8160405162461bcd60e51b815260040161060b9190611cf4565b600060208284031215611b1f57600080fd5b81356118b381611eee565b60008060208385031215611b3d57600080fd5b823567ffffffffffffffff80821115611b5557600080fd5b818501915085601f830112611b6957600080fd5b813581811115611b7857600080fd5b8660208260051b8501011115611b8d57600080fd5b60209290920196919550909350505050565b600060208284031215611bb157600080fd5b81516118b381611f03565b600060208284031215611bce57600080fd5b5035919050565b600060208284031215611be757600080fd5b5051919050565b60008060408385031215611c0157600080fd5b823591506020830135611c1381611eee565b809150509250929050565b600080600060608486031215611c3357600080fd5b833592506020840135611c4581611eee565b91506040840135611c5581611eee565b809150509250925092565b600080600060608486031215611c7557600080fd5b83359250602084013591506040840135611c5581611eee565b60008060008060808587031215611ca457600080fd5b84359350602085013592506040850135611cbd81611eee565b91506060850135611ccd81611f03565b939692955090935050565b60008251611cea818460208701611e7b565b9190910192915050565b6020815260008251806020840152611d13816040850160208701611e7b565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b9485526001600160a01b0393841660208601529190921660408401526060830191909152608082015260a00190565b600080821280156001600160ff1b0384900385131615611dad57611dad611ec2565b600160ff1b8390038412811615611dc657611dc6611ec2565b50500190565b60008219821115611ddf57611ddf611ec2565b500190565b600082611e0157634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611e2057611e20611ec2565b500290565b60008083128015600160ff1b850184121615611e4357611e43611ec2565b6001600160ff1b0384018313811615611e5e57611e5e611ec2565b50500390565b600082821015611e7657611e76611ec2565b500390565b60005b83811015611e96578181015183820152602001611e7e565b83811115610a4c5750506000910152565b6000600019821415611ebb57611ebb611ec2565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03811681146114a257600080fd5b80151581146114a257600080fdfea264697066735822122008a986da729f34851d86d2d460b574125d295389817813fee4cc0cb4dcdccc8764736f6c6343000807003300000000000000000000000024c19f7101c1731b85f1127eaa0407732e36ecdd00000000000000000000000038aa4cc003d9ad84505bc7b096122402db31f7080000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806388bba42f116100f9578063b60d428811610097578063d1c6a23111610071578063d1c6a231146103ff578063f2fde38b1461040b578063faa807171461041e578063fbe6cf6a1461043157600080fd5b8063b60d4288146103c6578063c346253d146103d9578063d1abb907146103ec57600080fd5b80638f10369a116100d35780638f10369a1461035057806393f1a40b1461035957806398969e82146103a0578063ab7de098146103b357600080fd5b806388bba42f146103195780638da5cb5b1461032c5780638dbdbe6d1461033d57600080fd5b80632f940c701161016657806357a5b58c1161014057806357a5b58c146102d857806366da5815146102eb578063715018a6146102fe57806378ed5d1f1461030657600080fd5b80632f940c701461027d578063456c987e1461029057806351eb05a6146102a357600080fd5b80631526fe27116101a25780631526fe271461020857806317caf6f11461023657806318fccc761461023f578063228cb7331461025257600080fd5b8063081e3eda146101c95780630ad58d2f146101e05780630e21750f146101f5575b600080fd5b6003545b6040519081526020015b60405180910390f35b6101f36101ee366004611c60565b610444565b005b6101f3610203366004611b0d565b6105e1565b61021b610216366004611bbc565b61065e565b604080519384526020840192909252908201526060016101d7565b6101cd60075481565b6101f361024d366004611bee565b610691565b600154610265906001600160a01b031681565b6040516001600160a01b0390911681526020016101d7565b6101f361028b366004611bee565b61069f565b600954610265906001600160a01b031681565b6102b66102b1366004611bbc565b6107f4565b60408051825181526020808401519082015291810151908201526060016101d7565b6101f36102e6366004611b2a565b610a0e565b6101f36102f9366004611bbc565b610a52565b6101f3610ab7565b610265610314366004611bbc565b610aed565b6101f3610327366004611c8e565b610b17565b6000546001600160a01b0316610265565b6101f361034b366004611c60565b610c7e565b6101cd60085481565b61038b610367366004611bee565b60066020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101d7565b6101cd6103ae366004611bee565b610e13565b6101f36103c1366004611c1e565b610fe6565b600254610265906001600160a01b031681565b6102656103e7366004611bbc565b61119f565b6101f36103fa366004611c60565b6111af565b6101cd64e8d4a5100081565b6101f3610419366004611b0d565b61140a565b6101f361042c366004611b0d565b6114a5565b6101f361043f366004611b0d565b611519565b600061044f846107f4565b6000858152600660209081526040808320338452909152902081519192509064e8d4a510009061047f9086611e06565b6104899190611de4565b81600101600082825461049c9190611e25565b90915550508054849082906000906104b5908490611e64565b925050819055506000600586815481106104d1576104d1611ed8565b6000918252602090912001546001600160a01b0316905080156105575781546040516344af0fa760e01b81526001600160a01b038316916344af0fa791610524918a9133918a9160009190600401611d5c565b600060405180830381600087803b15801561053e57600080fd5b505af1158015610552573d6000803e3d6000fd5b505050505b61058b84866004898154811061056f5761056f611ed8565b6000918252602090912001546001600160a01b03169190611565565b836001600160a01b031686336001600160a01b03167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec2132886040516105d191815260200190565b60405180910390a4505050505050565b6000546001600160a01b031633146106145760405162461bcd60e51b815260040161060b90611d27565b60405180910390fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040517f1bbced6cc5125dba763681b1a276a950f551621431f63fdb5b2b180da1aa2ae390600090a250565b6003818154811061066e57600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b61069b82826115c8565b5050565b600082815260066020908152604080832033845290915281208054828255600182018390556005805492939192869081106106dc576106dc611ed8565b6000918252602090912001546001600160a01b031690508015610787576040516344af0fa760e01b81526001600160a01b038216906344af0fa79061072e908890339089906000908190600401611d5c565b600060405180830381600087803b15801561074857600080fd5b505af1925050508015610759575060015b610787576040517fddff362d6e611b982871a2c3957d95a520914186e208a557ac040c8b652a9d6d90600090a15b61079f84836004888154811061056f5761056f611ed8565b836001600160a01b031685336001600160a01b03167f2cac5e20e1541d836381527a43f651851e302817b71dc8e810284e69210c1c6b856040516107e591815260200190565b60405180910390a45050505050565b61081860405180606001604052806000815260200160008152602001600081525090565b6003828154811061082b5761082b611ed8565b600091825260209182902060408051606081018252600390930290910180548352600181015493830184905260020154908201529150421115610a095760006004838154811061087d5761087d611ed8565b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156108c957600080fd5b505afa1580156108dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109019190611bd5565b9050801561097a57600082602001514261091b9190611e64565b905060006007548460400151600854846109359190611e06565b61093f9190611e06565b6109499190611de4565b90508261095b64e8d4a5100083611e06565b6109659190611de4565b84518590610974908390611dcc565b90525050505b426020830152600380548391908590811061099757610997611ed8565b600091825260209182902083516003929092020190815582820151600182015560409283015160029091015583810151845183519182529181018490529182015283907fcb7325664a4a3b7c7223eefc492a97ca4fdf94d46884621e5a8fae5a04b2b9d29060600160405180910390a2505b919050565b8060005b81811015610a4c57610a3b848483818110610a2f57610a2f611ed8565b905060200201356107f4565b50610a4581611ea7565b9050610a12565b50505050565b6000546001600160a01b03163314610a7c5760405162461bcd60e51b815260040161060b90611d27565b60088190556040518181527fde89cb17ac7f58f94792b3e91e086ed85403819c24ceea882491f960ccb1a2789060200160405180910390a150565b6000546001600160a01b03163314610ae15760405162461bcd60e51b815260040161060b90611d27565b610aeb600061177d565b565b60048181548110610afd57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b03163314610b415760405162461bcd60e51b815260040161060b90611d27565b8260038581548110610b5557610b55611ed8565b906000526020600020906003020160020154600754610b749190611e64565b610b7e9190611dcc565b6007819055508260038581548110610b9857610b98611ed8565b9060005260206000209060030201600201819055508015610bf6578160058581548110610bc757610bc7611ed8565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b80610c285760058481548110610c0e57610c0e611ed8565b6000918252602090912001546001600160a01b0316610c2a565b815b6001600160a01b0316847f95895a6ab1df54420d241b55243258a33e61b2194db66c1179ec521aae8e18658584604051610c709291909182521515602082015260400190565b60405180910390a350505050565b6000610c89846107f4565b60008581526006602090815260408083206001600160a01b0387168452909152812080549293509185918391610cc0908490611dcc565b9091555050815164e8d4a5100090610cd89086611e06565b610ce29190611de4565b816001016000828254610cf59190611d8b565b92505081905550600060058681548110610d1157610d11611ed8565b6000918252602090912001546001600160a01b031690508015610d975781546040516344af0fa760e01b81526001600160a01b038316916344af0fa791610d64918a918991829160009190600401611d5c565b600060405180830381600087803b158015610d7e57600080fd5b505af1158015610d92573d6000803e3d6000fd5b505050505b610dcd33308760048a81548110610db057610db0611ed8565b6000918252602090912001546001600160a01b03169291906117cd565b836001600160a01b031686336001600160a01b03167f02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b47886040516105d191815260200190565b60008060038481548110610e2957610e29611ed8565b60009182526020808320604080516060810182526003909402909101805484526001810154848401526002015483820152878452600682528084206001600160a01b038816855290915282208151600480549395509193909290919088908110610e9557610e95611ed8565b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610ee157600080fd5b505afa158015610ef5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f199190611bd5565b9050836020015142118015610f2d57508015155b15610f9d576000846020015142610f449190611e64565b90506000600754866040015160085484610f5e9190611e06565b610f689190611e06565b610f729190611de4565b905082610f8464e8d4a5100083611e06565b610f8e9190611de4565b610f989085611dcc565b935050505b6001830154835464e8d4a5100090610fb6908590611e06565b610fc09190611de4565b610fca9190611e25565b9450610fdb86868560000154611805565b979650505050505050565b6000546001600160a01b031633146110105760405162461bcd60e51b815260040161060b90611d27565b611019826118ba565b826007600082825461102b9190611dcc565b909155505060048054600181810183557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b90910180546001600160a01b038087166001600160a01b03199283168117909355600580548086019091557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001805491871691909216811790915560408051606081018252600080825242602083019081529282018a8152600380548089018255928190529251919092027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b81019190915591517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c830155517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d909101559254909161116791611e64565b6040518681527f81ee0f8c5c46e2cb41984886f77a84181724abb86c32a5f6de539b07509d45e59060200160405180910390a4505050565b60058181548110610afd57600080fd5b60006111ba846107f4565b6000858152600660209081526040808320338452909152812082518154939450909264e8d4a51000916111ec91611e06565b6111f69190611de4565b9050600082600101548261120a9190611e25565b905061121b85828560000154611805565b845190915064e8d4a51000906112319088611e06565b61123b9190611de4565b6112459083611e25565b600184015582548690849060009061125e908490611e64565b909155505060025460405163d66e57cd60e01b81526001600160a01b038781166004830152602482018490529091169063d66e57cd90604401600060405180830381600087803b1580156112b157600080fd5b505af11580156112c5573d6000803e3d6000fd5b505050506000600588815481106112de576112de611ed8565b6000918252602090912001546001600160a01b0316905080156113635783546040516344af0fa760e01b81526001600160a01b038316916344af0fa791611330918c9133918c91899190600401611d5c565b600060405180830381600087803b15801561134a57600080fd5b505af115801561135e573d6000803e3d6000fd5b505050505b61137b868860048b8154811061056f5761056f611ed8565b856001600160a01b031688336001600160a01b03167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec21328a6040516113c191815260200190565b60405180910390a4604051828152889033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a35050505050505050565b6000546001600160a01b031633146114345760405162461bcd60e51b815260040161060b90611d27565b6001600160a01b0381166114995760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161060b565b6114a28161177d565b50565b6000546001600160a01b031633146114cf5760405162461bcd60e51b815260040161060b90611d27565b600980546001600160a01b0319166001600160a01b0383169081179091556040517fa8070663a27d9ac0261ae55a7c5b808b9816f9bec5226ad5786e5d5acfa4680490600090a250565b60035460005b81811015611560576000818152600660209081526040808320338452909152902054156115505761155081846115c8565b61155981611ea7565b905061151f565b505050565b6040516001600160a01b03831660248201526044810182905261156090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611940565b60006115d3836107f4565b6000848152600660209081526040808320338452909152812082518154939450909264e8d4a510009161160591611e06565b61160f9190611de4565b905060008260010154826116239190611e25565b905061163485828560000154611805565b6001840183905560025460405163d66e57cd60e01b81526001600160a01b0388811660048301526024820184905292935091169063d66e57cd90604401600060405180830381600087803b15801561168b57600080fd5b505af115801561169f573d6000803e3d6000fd5b505050506000600587815481106116b8576116b8611ed8565b6000918252602090912001546001600160a01b03169050801561173d5783546040516344af0fa760e01b81526001600160a01b038316916344af0fa79161170a918b9133918c91899190600401611d5c565b600060405180830381600087803b15801561172457600080fd5b505af1158015611738573d6000803e3d6000fd5b505050505b604051828152879033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a350505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a4c9085906323b872dd60e01b90608401611591565b6009546000906001600160a01b031661181f5750816118b3565b600954604051633fb9c70b60e21b81526001600160a01b03868116600483015230602483015260448201869052606482018590529091169063fee71c2c9060840160206040518083038186803b15801561187857600080fd5b505afa15801561188c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b09190611bd5565b90505b9392505050565b60035460005b8181101561156057826001600160a01b0316600482815481106118e5576118e5611ed8565b6000918252602090912001546001600160a01b031614156119305760405162461bcd60e51b81526020600482015260056024820152644d433a414560d81b604482015260640161060b565b61193981611ea7565b90506118c0565b6000611995826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611a129092919063ffffffff16565b80519091501561156057808060200190518101906119b39190611b9f565b6115605760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161060b565b60606118b0848460008585843b611a6b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161060b565b600080866001600160a01b03168587604051611a879190611cd8565b60006040518083038185875af1925050503d8060008114611ac4576040519150601f19603f3d011682016040523d82523d6000602084013e611ac9565b606091505b5091509150610fdb82828660608315611ae35750816118b3565b825115611af35782518084602001fd5b8160405162461bcd60e51b815260040161060b9190611cf4565b600060208284031215611b1f57600080fd5b81356118b381611eee565b60008060208385031215611b3d57600080fd5b823567ffffffffffffffff80821115611b5557600080fd5b818501915085601f830112611b6957600080fd5b813581811115611b7857600080fd5b8660208260051b8501011115611b8d57600080fd5b60209290920196919550909350505050565b600060208284031215611bb157600080fd5b81516118b381611f03565b600060208284031215611bce57600080fd5b5035919050565b600060208284031215611be757600080fd5b5051919050565b60008060408385031215611c0157600080fd5b823591506020830135611c1381611eee565b809150509250929050565b600080600060608486031215611c3357600080fd5b833592506020840135611c4581611eee565b91506040840135611c5581611eee565b809150509250925092565b600080600060608486031215611c7557600080fd5b83359250602084013591506040840135611c5581611eee565b60008060008060808587031215611ca457600080fd5b84359350602085013592506040850135611cbd81611eee565b91506060850135611ccd81611f03565b939692955090935050565b60008251611cea818460208701611e7b565b9190910192915050565b6020815260008251806020840152611d13816040850160208701611e7b565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b9485526001600160a01b0393841660208601529190921660408401526060830191909152608082015260a00190565b600080821280156001600160ff1b0384900385131615611dad57611dad611ec2565b600160ff1b8390038412811615611dc657611dc6611ec2565b50500190565b60008219821115611ddf57611ddf611ec2565b500190565b600082611e0157634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611e2057611e20611ec2565b500290565b60008083128015600160ff1b850184121615611e4357611e43611ec2565b6001600160ff1b0384018313811615611e5e57611e5e611ec2565b50500390565b600082821015611e7657611e76611ec2565b500390565b60005b83811015611e96578181015183820152602001611e7e565b83811115610a4c5750506000910152565b6000600019821415611ebb57611ebb611ec2565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03811681146114a257600080fd5b80151581146114a257600080fdfea264697066735822122008a986da729f34851d86d2d460b574125d295389817813fee4cc0cb4dcdccc8764736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000024c19f7101c1731b85f1127eaa0407732e36ecdd00000000000000000000000038aa4cc003d9ad84505bc7b096122402db31f7080000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _reward (address): 0x24C19F7101c1731b85F1127EaA0407732E36EcDD
Arg [1] : _fund (address): 0x38aa4CC003D9Ad84505bc7b096122402Db31f708
Arg [2] : _tum (address): 0x0000000000000000000000000000000000000000
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000024c19f7101c1731b85f1127eaa0407732e36ecdd
Arg [1] : 00000000000000000000000038aa4cc003d9ad84505bc7b096122402db31f708
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.