15M+ users trust MoonPay. Checkout with your preferred payment method.
Ready to onboard to crypto on Polygon? With MetaMask Portfolio, you're in control.
Daily free Spin 50000 Matic ,760% Deposit Bonus, 20%Rakeback, And Get 1000000 Matic free bonus on BC.Game
Deposit BONUS 300% and Cashbacks. without verification!
Register now and get a 100% deposit bonus and no loss.
Overview
MATIC Balance
MATIC Value
$0.00Token Holdings
Could not find any matches!
- ERC-20 Tokens (32)43,767 AAVE [ACCESS AAVE.ASIA]! AAVE.asia (AAVE [...)4,376 ACCESS [LIDO.DOG] TO CLAIM! LIDO.dog (ACCESS...)1 Acces blast2l.com to claim reward# blast2l.co... (Acces ...)1 Acces stETHERS.COM to claim rewards# stETHERS.C... (Acces ...)1 Acces stETHERS.COM to claim rewards# stETHERS.C... (Acces ...)1 Acces zerolends.com to claim reward# zerolends.... (Acces ...)1 Acces blast2l.com to claim rewardAcces blast2... (Acces ...)1 Acces blast2l.com to claim rewardAcces blast2... (Acces ...)1 Acces Liquid-ether.com to claim rewardsAcces Liquid... (Acces ...)1 Acces zerolends.com to claim rewardAcces zerole... (Acces ...)10,000 $ Check: blastcode.io Your AirDrop CodeBLAST ($ Chec...)10,000 $ Check: blastcode.io Your AirDrop CodeBLAST ($ Chec...)80,000 pepe-erc.vipFree PEPE go... (pepe-e...)16,413.23460663 xWOOInterest Bea... (xWOO)23.9781932 SIMSimba Empire (SIM)10,000 STRK.LIVE CLAIM HERE 🎁STRK (STRK.L...)10,000 $USDT > LOOT-USDT.COM 🎁USDT ($USDT ...)10,000 $USDT > LOOT-USDT.COMUSDT ($USDT ...)888,888 vanity-address.iovanity-addre... (vanity...)0 weUSDCWOOFi Super ... (weUSDC)0.00000069 weUSDCWOOFi Super ... (weUSDC)0.00451449 weWETHWOOFi Super ... (weWETH)143.11026086 weWETHWOOFi Super ... (weWETH)647.18436014 weWMATICWOOFi Super ... (weWMAT...)625,318.41324507 weWMATICWOOFi Super ... (weWMAT...)1 zerolends.comzerolends.co... (zerole...)1 TokenERC-20 TOKEN*[Suspicious]1 TokenERC-20 TOKEN*[Suspicious]1 TokenERC-20 TOKEN*[Suspicious]1 TokenERC-20 TOKEN*[Suspicious]12,766 TokenERC-20 TOKEN*[Spam]1 TokenERC-20 TOKEN*[Spam]NFT Tokens (73)drop-usdc.com$$1000 REWARDSERC-1155GIVEAWAY$100,000,000ERC-1155drops-usdc.com$1000 drops-usdc.comERC-1155NFT Voucher$15,000 SHIBERC-1155token-rewards.xyz$5000 AirDropERC-1155Vouchers$5000 BUSD VoucherERC-1155drop-coins.xyz$5000 GET REWARDERC-1155usd-drop.xyz$5000 USDC REWARDERC-1155Vouchers$5000 USDC VoucherERC-1155Vouchers$5000 USDC VoucherERC-1155Vouchers$5000 USDC VoucherERC-1155Vouchers$5000 USDC VoucherERC-1155Vouchers$5000 USDC VoucherERC-1155Vouchers$5000 USDC VoucherERC-1155drop-usdc.com1000 USDCERC-11552000rewards.xyz1000$ AirDropERC-1155rewards-1000.xyz1000$ AirDropERC-1155drop-reward.xyz1000$ Drop REWARDSERC-1155rewards-circle.xyz1000$ RewardERC-1155drop-rewards.xyz1000$ REWARDSERC-1155drop-rewards.xyz1000$ REWARDSERC-1155drops-reward.xyz1000$ REWARDSERC-1155token-rewards.xyz1000$ REWARDSERC-1155token-rewards.xyz1000$ REWARDSERC-1155official-rewards.xyz1000$ REWARDSERC-1155drop-usdc.com10000$USDCERC-1155coin-drop.xyz2000$ Drop RewardERC-1155usdt-rewards.xyz2000$ RewardERC-1155drop-usdt.xyz2000$ RewardERC-1155usdt-rewards.xyz2000$ RewardERC-1155drops-usdt.xyz2000$ RewardERC-1155drop-usdt.xyz2000$ RewardsERC-1155usdt-drops.xyz2000$ RewardsERC-1155drops-usdt.xyz2000$ RewardsERC-1155NFT Voucher3 stETHERC-1155NFT Voucher5000 USDCERC-1155NFT Voucher5000 USDCERC-1155NFT Voucher5000 USDT VoucherERC-1155coin-reward.xyz5000$ AirDropERC-1155coin-reward.xyz5000$ AirDropERC-1155NFTVoucher5000$ CYBERERC-1155NFTVoucher5000$ CYBERERC-1155coin-rewards.xyz5000$$$ AirDropERC-1155Vouchers50M $SHIB VoucherERC-1155drop-dai.xyz999$ RewardERC-1155AAVE-V3-POSAave Positions AirdropERC-1155APE COINAPE NFT TICKETSERC-1155APE COINAPE NFT TICKETSERC-1155OPTIMISMOPTIMISM NFT TICKETSERC-1155club-rewards.xyzReward ClubERC-1155reward-club.xyzREWARDS Club TicketERC-1155UNI-V3-PoSUniswap V3 Positions NFT-V1ERC-1155UNI-V3-PoSUniswap V3 Positions NFT-V1ERC-1155UNI-V3-PoSUniswap V3 Positions NFT-V1ERC-1155UNI-V3-PoSUniswap V3 Positions NFT-V1ERC-1155UNI-V3-PoSUniswap V3 Positions NFT-V1ERC-1155usd-drops.xyzUSD AirDropERC-1155ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]
More Info
Private Name Tags
ContractCreator:
Multichain Info
2 addresses found viaLatest 25 from a total of 6,952 transactions
Transaction Hash MethodBlockFromToValue Harvest 55172727 2024-03-28 10:21:33 35 mins ago 1711621293 IN 0 MATIC 0.02967891 191.72549126 Harvest 55165518 2024-03-28 5:38:56 5 hrs ago 1711604336 IN 0 MATIC 0.00809593 64 Harvest 55165498 2024-03-28 5:38:14 5 hrs ago 1711604294 IN 0 MATIC 0.00919033 64 Harvest 55163598 2024-03-28 4:26:15 6 hrs ago 1711599975 IN 0 MATIC 0.01413007 98.39951894 Harvest 55158171 2024-03-28 1:09:09 9 hrs ago 1711588149 IN 0 MATIC 0.02062788 120 Deposit 55147695 2024-03-27 18:39:45 16 hrs ago 1711564785 IN 0 MATIC 0.02607304 167 Harvest 55146758 2024-03-27 18:04:19 16 hrs ago 1711562659 IN 0 MATIC 0.01873699 109 Withdraw 55138985 2024-03-27 13:05:06 21 hrs ago 1711544706 IN 0 MATIC 0.0600608 403.11969555 Harvest 55138979 2024-03-27 13:04:54 21 hrs ago 1711544694 IN 0 MATIC 0.06402998 413.63306233 Harvest 55136393 2024-03-27 11:24:12 23 hrs ago 1711538652 IN 0 MATIC 0.01881146 131 Harvest 55132148 2024-03-27 8:47:31 26 hrs ago 1711529251 IN 0 MATIC 0.02210583 153.94139408 Harvest 55130567 2024-03-27 7:49:23 27 hrs ago 1711525763 IN 0 MATIC 0.02069295 163.58197072 Deposit 55130119 2024-03-27 7:32:25 27 hrs ago 1711524745 IN 0 MATIC 0.01566691 106.00217905 Withdraw 55126422 2024-03-27 5:11:51 29 hrs ago 1711516311 IN 0 MATIC 0.02226037 150.51878711 Withdraw 55126314 2024-03-27 5:06:57 29 hrs ago 1711516017 IN 0 MATIC 0.01648926 112.74708348 Harvest 55126297 2024-03-27 5:06:21 29 hrs ago 1711515981 IN 0 MATIC 0.01226244 96.93705145 Deposit 55123733 2024-03-27 3:29:03 31 hrs ago 1711510143 IN 0 MATIC 0.01872294 113.55082909 Harvest 55122014 2024-03-27 2:24:16 32 hrs ago 1711506256 IN 0 MATIC 0.01237285 86.16252857 Harvest 55119284 2024-03-27 0:40:54 34 hrs ago 1711500054 IN 0 MATIC 0.00836463 66.12415461 Harvest 55109593 2024-03-26 18:31:33 40 hrs ago 1711477893 IN 0 MATIC 0.01524386 110.70427458 Withdraw 55109405 2024-03-26 18:23:49 40 hrs ago 1711477429 IN 0 MATIC 0.01808339 105.32583609 Withdraw 55108827 2024-03-26 18:01:25 40 hrs ago 1711476085 IN 0 MATIC 0.01528461 93.58350512 Deposit 55107969 2024-03-26 17:28:16 41 hrs ago 1711474096 IN 0 MATIC 0.02415805 134 Harvest 55103723 2024-03-26 14:44:27 44 hrs ago 1711464267 IN 0 MATIC 0.04516014 357 Withdraw 55103036 2024-03-26 14:18:31 44 hrs ago 1711462711 IN 0 MATIC 0.01769561 120.99564803 Loading...LoadingContract Name:MasterChefWoo
Compiler Versionv0.8.14+commit.80d49f37
Optimization Enabled:Yes with 888888 runs
Other Settings:default evmVersionContract 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/IMasterChefWoo.sol"; import "./interfaces/IXWoo.sol"; import "./libraries/TransferHelper.sol"; contract MasterChefWoo is IMasterChefWoo, Ownable, ReentrancyGuard { using SafeERC20 for IERC20; using EnumerableSet for EnumerableSet.AddressSet; address public constant ETH_PLACEHOLDER_ADDR = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; IERC20 public immutable xWoo; uint256 public xWooPerBlock; uint256 public totalAllocPoint; PoolInfo[] public poolInfo; mapping(uint256 => mapping(address => UserInfo)) public userInfo; EnumerableSet.AddressSet private weTokenSet; constructor(IERC20 _xWoo, uint256 _xWooPerBlock) { xWoo = _xWoo; xWooPerBlock = _xWooPerBlock; } 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 pendingXWoo(uint256 _pid, address _user) external view override returns (uint256 pendingXWooAmount, uint256 pendingWooAmount) { 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 xWooReward = (blocks * xWooPerBlock * pool.allocPoint) / totalAllocPoint; accTokenPerShare += (xWooReward * 1e12) / weTokenSupply; } pendingXWooAmount = (user.amount * accTokenPerShare) / 1e12 - user.rewardDebt; uint256 rate = IXWoo(address(xWoo)).getPricePerFullShare(); pendingWooAmount = (pendingXWooAmount * rate) / 1e18; } // 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 xWooReward = (blocks * xWooPerBlock * pool.allocPoint) / totalAllocPoint; pool.accTokenPerShare += (xWooReward * 1e12) / weSupply; } pool.lastRewardBlock = block.number; emit PoolUpdated(_pid, pool.lastRewardBlock, weSupply, pool.accTokenPerShare); } } function setXWooPerBlock(uint256 _xWooPerBlock) external override onlyOwner { require(_xWooPerBlock > 0, "Invalid value"); massUpdatePools(); xWooPerBlock = _xWooPerBlock; emit XWooPerBlockUpdated(xWooPerBlock); } 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 xWoo uint256 pending = (user.amount * pool.accTokenPerShare) / 1e12 - user.rewardDebt; xWoo.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; xWoo.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 xWoo.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 pragma solidity 0.8.14; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./IRewarder.sol"; interface IMasterChefWoo { 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 XWooPerBlockUpdated(uint256 xWooPerBlock); 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 setXWooPerBlock(uint256 _xWooPerBlock) 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 pendingXWoo(uint256 pid, address user) external view returns (uint256, uint256); function deposit(uint256 pid, uint256 amount) external; function withdraw(uint256 pid, uint256 amount) external; function harvest(uint256 pid) external; function emergencyWithdraw(uint256 pid) external; }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false library TransferHelper { function safeApprove( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::safeApprove: approve failed' ); } function safeTransfer( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::safeTransfer: transfer failed' ); } function safeTransferFrom( address token, address from, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper::transferFrom: transferFrom failed' ); } function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, 'TransferHelper::safeTransferETH: ETH transfer failed'); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; interface IXWoo { function getPricePerFullShare() external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IRewarder { event OnRewarded(address indexed user, uint256 amount); event RewardRateUpdated(uint256 oldRate, uint256 newRate); struct UserInfo { uint256 amount; uint256 rewardDebt; uint256 unpaidRewards; } struct PoolInfo { uint256 accTokenPerShare; uint256 lastRewardBlock; } function onRewarded(address user, uint256 amount) external; function pendingTokens(address user) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 888888 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
[{"inputs":[{"internalType":"contract IERC20","name":"_xWoo","type":"address"},{"internalType":"uint256","name":"_xWooPerBlock","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":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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"xWooPerBlock","type":"uint256"}],"name":"XWooPerBlockUpdated","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":"pendingXWoo","outputs":[{"internalType":"uint256","name":"pendingXWooAmount","type":"uint256"},{"internalType":"uint256","name":"pendingWooAmount","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":[{"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":"_xWooPerBlock","type":"uint256"}],"name":"setXWooPerBlock","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"},{"inputs":[],"name":"xWoo","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"xWooPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620029a1380380620029a18339810160408190526200003491620000aa565b6200003f336200005a565b600180556001600160a01b03909116608052600255620000e6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060408385031215620000be57600080fd5b82516001600160a01b0381168114620000d657600080fd5b6020939093015192949293505050565b6080516128836200011e6000396000818161020a0152818161063f01528181610fe90152818161159d0152611a1401526128836000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c806388c4cb36116100d8578063ab7de0981161008c578063e1a4e72a11610066578063e1a4e72a1461036f578063e2bbb15814610382578063f2fde38b1461039557600080fd5b8063ab7de09814610340578063c8a8e4f214610353578063ddc632621461035c57600080fd5b80638da5cb5b116100bd5780638da5cb5b146102c857806393f1a40b146102e6578063a36f3c8d1461032d57600080fd5b806388c4cb361461029a5780638a1017ed146102b557600080fd5b806351eb05a61161012f5780635ccbfa94116101145780635ccbfa9414610277578063630b5ba11461028a578063715018a61461029257600080fd5b806351eb05a6146102515780635312ea8e1461026457600080fd5b806317caf6f11161016057806317caf6f1146101e7578063441a3e70146101f05780634506add81461020557600080fd5b8063081e3eda1461017c5780631526fe2714610193575b600080fd5b6004545b6040519081526020015b60405180910390f35b6101a66101a1366004612522565b6103a8565b6040805173ffffffffffffffffffffffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a00161018a565b61018060035481565b6102036101fe36600461253b565b610403565b005b61022c7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161018a565b61020361025f366004612522565b6107d5565b610203610272366004612522565b610971565b610203610285366004612522565b610b60565b610203610c15565b610203610c3e565b61022c73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b6102036102c336600461257f565b610c52565b60005473ffffffffffffffffffffffffffffffffffffffff1661022c565b6103186102f43660046125b8565b60056020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161018a565b61031861033b3660046125b8565b610e1d565b61020361034e3660046125e8565b6110a3565b61018060025481565b61020361036a366004612522565b611431565b61020361037d36600461261f565b6116d0565b61020361039036600461253b565b6118af565b6102036103a336600461261f565b611be8565b600481815481106103b857600080fd5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff93841695509193909290911685565b600260015403610474576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155806104e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20696e76616c69642076616c75650000000000000000000000000000604482015260640161046b565b6104e9826107d5565b60003390506000600484815481106105035761050361263c565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff9081168452600182015484860152600282015484840152600382015460608501526004909101548116608084015289865293835280852093871685529290915291208054919250908411156105e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4d43573a2021616d6f756e740000000000000000000000000000000000000000604482015260640161046b565b805415610668576000816001015464e8d4a510008460600151846000015461060f919061269a565b61061991906126d7565b6106239190612712565b905061066673ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168583611c9c565b505b8381600001600082825461067c9190612712565b90915550506060820151815464e8d4a51000916106989161269a565b6106a291906126d7565b6001820155608082015173ffffffffffffffffffffffffffffffffffffffff8116156107555781546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b15801561073c57600080fd5b505af1158015610750573d6000803e3d6000fd5b505050505b82516107789073ffffffffffffffffffffffffffffffffffffffff168587611c9c565b858473ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568876040516107c191815260200190565b60405180910390a350506001805550505050565b6000600482815481106107ea576107ea61263c565b90600052602060002090600502019050806002015443111561096d5780546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610874573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108989190612729565b905080156109175760008260020154436108b29190612712565b905060006003548460010154600254846108cc919061269a565b6108d6919061269a565b6108e091906126d7565b9050826108f28264e8d4a5100061269a565b6108fc91906126d7565b84600301600082825461090f9190612742565b909155505050505b43600283018190556003830154604080518681526020810193909352820183905260608201527fb0a2ded49817748754bcca0474b24011f01d4574dd5c40e14197ffa2e6540fef906080015b60405180910390a1505b5050565b6002600154036109dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161046b565b600260015560003390506000600483815481106109fc576109fc61263c565b600091825260208083208684526005808352604080862073ffffffffffffffffffffffffffffffffffffffff891680885294529485902080549551919094029091019450919286927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059591610a739190815260200190565b60405180910390a3805460008083556001830155600483015473ffffffffffffffffffffffffffffffffffffffff168015610b31576040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526000602483015282169063560e39b290604401600060405180830381600087803b158015610b1857600080fd5b505af1158015610b2c573d6000803e3d6000fd5b505050505b8354610b549073ffffffffffffffffffffffffffffffffffffffff168684611c9c565b50506001805550505050565b610b68611d75565b60008111610bd2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642076616c756500000000000000000000000000000000000000604482015260640161046b565b610bda610c15565b60028190556040518181527f184d5c96ee55a1c4b45f8ab5cb8c540d01d82cdbeb22edf847be90025a4cae6b9060200160405180910390a150565b60045460005b8181101561096d57610c2c816107d5565b80610c368161275a565b915050610c1b565b610c46611d75565b610c506000611df6565b565b610c5a611d75565b600060048481548110610c6f57610c6f61263c565b9060005260206000209060050201905082816001015414610cb257806001015483600354610c9d9190612742565b610ca79190612712565b600355600181018390555b600481015473ffffffffffffffffffffffffffffffffffffffff838116911614610dbd5773ffffffffffffffffffffffffffffffffffffffff821615610d7a576040517f560e39b2000000000000000000000000000000000000000000000000000000008152600060048201819052602482015273ffffffffffffffffffffffffffffffffffffffff83169063560e39b290604401600060405180830381600087803b158015610d6157600080fd5b505af1158015610d75573d6000803e3d6000fd5b505050505b6004810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84161790555b6004810154604080518681526020810186905273ffffffffffffffffffffffffffffffffffffffff90921682820152517fff38300b7866933a8f16457ac835b1f4c31c3ac59d4b179b65a044b2d49cd09e9181900360600190a150505050565b600080600060048581548110610e3557610e3561263c565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff9081168452600182015484860152600282015484840152600382015460608501908152600492830154821660808601528c88529585528287208b821688529094528186209451835192517f70a08231000000000000000000000000000000000000000000000000000000008152309281019290925292965093949193919216906370a0823190602401602060405180830381865afa158015610f0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f329190612729565b9050836040015143118015610f4657508015155b15610fb6576000846040015143610f5d9190612712565b90506000600354866020015160025484610f77919061269a565b610f81919061269a565b610f8b91906126d7565b905082610f9d8264e8d4a5100061269a565b610fa791906126d7565b610fb19085612742565b935050505b6001830154835464e8d4a5100090610fcf90859061269a565b610fd991906126d7565b610fe39190612712565b955060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166377c7b8fc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611052573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110769190612729565b9050670de0b6b3a764000061108b828961269a565b61109591906126d7565b955050505050509250929050565b6110ab611d75565b6110b6600683611e6b565b1561111d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20616c72656164792061646465640000000000000000000000000000604482015260640161046b565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015611187573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190612729565b5073ffffffffffffffffffffffffffffffffffffffff811615611250576040517f560e39b2000000000000000000000000000000000000000000000000000000008152600060048201819052602482015273ffffffffffffffffffffffffffffffffffffffff82169063560e39b290604401600060405180830381600087803b15801561123757600080fd5b505af115801561124b573d6000803e3d6000fd5b505050505b82600360008282546112629190612742565b90915550506040805160a08101825273ffffffffffffffffffffffffffffffffffffffff8085168252602082018681524393830193845260006060840181815286841660808601908152600480546001810182559352945160059092027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810180549386167fffffffffffffffffffffffff000000000000000000000000000000000000000094851617905592517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c84015594517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d83015593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e82015591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f909201805492909116919092161790556113be600683611e9f565b507fe72dff05c5a9817b99753fffdec6b7800cc743c2f4b1fbc3eeb93983712a2a4660016113eb60045490565b6113f59190612712565b604080519182526020820186905273ffffffffffffffffffffffffffffffffffffffff8086169183019190915283166060820152608001610963565b60026001540361149d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161046b565b60026001556114ab816107d5565b600081815260056020908152604080832033808552925282206004805492939192859081106114dc576114dc61263c565b600091825260208083206040805160a0810182526005909402909101805473ffffffffffffffffffffffffffffffffffffffff90811685526001820154938501939093526002810154918401919091526003810154606084018190526004909101549091166080830152845491935064e8d4a510009161155c919061269a565b61156691906126d7565b9050600083600101548261157a9190612712565b6001850183905590506115c473ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168683611c9c565b608083015173ffffffffffffffffffffffffffffffffffffffff8116156116725784546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b15801561165957600080fd5b505af115801561166d573d6000803e3d6000fd5b505050505b868673ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954846040516116bb91815260200190565b60405180910390a35050600180555050505050565b6116d8611d75565b73ffffffffffffffffffffffffffffffffffffffff8116611755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4d43573a20216164647265737300000000000000000000000000000000000000604482015260640161046b565b611760600682611e6b565b156117c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20217374616b65645f746f6b656e0000000000000000000000000000604482015260640161046b565b7fffffffffffffffffffffffff111111111111111111111111111111111111111273ffffffffffffffffffffffffffffffffffffffff8216016118115761180e3347611ec1565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa15801561187e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a29190612729565b905061096d823383611fcb565b60026001540361191b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161046b565b6002600155611929826107d5565b60003390506000600484815481106119435761194361263c565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff90811684526001820154848601526002820154848401526003820154606085015260049091015481166080840152898652938352808520938716855292909152912080549192509015611a8e576000816001015464e8d4a51000846060015184600001546119e4919061269a565b6119ee91906126d7565b6119f89190612712565b9050611a3b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168583611c9c565b858473ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae066092495483604051611a8491815260200190565b60405180910390a3505b83816000016000828254611aa29190612742565b90915550506060820151815464e8d4a5100091611abe9161269a565b611ac891906126d7565b6001820155608082015173ffffffffffffffffffffffffffffffffffffffff811615611b7b5781546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b158015611b6257600080fd5b505af1158015611b76573d6000803e3d6000fd5b505050505b8251611b9f9073ffffffffffffffffffffffffffffffffffffffff16853088612161565b858473ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15876040516107c191815260200190565b611bf0611d75565b73ffffffffffffffffffffffffffffffffffffffff8116611c93576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161046b565b61180e81611df6565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052611d709084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526121c5565b505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610c50576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161046b565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260018301602052604081205415155b90505b92915050565b6000611e968373ffffffffffffffffffffffffffffffffffffffff84166122d1565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051611ef891906127be565b60006040518083038185875af1925050503d8060008114611f35576040519150601f19603f3d011682016040523d82523d6000602084013e611f3a565b606091505b5050905080611d70576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c6564000000000000000000000000606482015260840161046b565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052915160009283929087169161206291906127be565b6000604051808303816000865af19150503d806000811461209f576040519150601f19603f3d011682016040523d82523d6000602084013e6120a4565b606091505b50915091508180156120ce5750805115806120ce5750808060200190518101906120ce91906127da565b61215a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c656400000000000000000000000000000000000000606482015260840161046b565b5050505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526121bf9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611cee565b50505050565b6000612227826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166123209092919063ffffffff16565b805190915015611d70578080602001905181019061224591906127da565b611d70576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161046b565b600081815260018301602052604081205461231857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611e99565b506000611e99565b606061232f8484600085612339565b90505b9392505050565b6060824710156123cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161046b565b73ffffffffffffffffffffffffffffffffffffffff85163b612449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161046b565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161247291906127be565b60006040518083038185875af1925050503d80600081146124af576040519150601f19603f3d011682016040523d82523d6000602084013e6124b4565b606091505b50915091506124c48282866124cf565b979650505050505050565b606083156124de575081612332565b8251156124ee5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046b91906127fc565b60006020828403121561253457600080fd5b5035919050565b6000806040838503121561254e57600080fd5b50508035926020909101359150565b73ffffffffffffffffffffffffffffffffffffffff8116811461180e57600080fd5b60008060006060848603121561259457600080fd5b833592506020840135915060408401356125ad8161255d565b809150509250925092565b600080604083850312156125cb57600080fd5b8235915060208301356125dd8161255d565b809150509250929050565b6000806000606084860312156125fd57600080fd5b83359250602084013561260f8161255d565b915060408401356125ad8161255d565b60006020828403121561263157600080fd5b81356123328161255d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156126d2576126d261266b565b500290565b60008261270d577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000828210156127245761272461266b565b500390565b60006020828403121561273b57600080fd5b5051919050565b600082198211156127555761275561266b565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361278b5761278b61266b565b5060010190565b60005b838110156127ad578181015183820152602001612795565b838111156121bf5750506000910152565b600082516127d0818460208701612792565b9190910192915050565b6000602082840312156127ec57600080fd5b8151801515811461233257600080fd5b602081526000825180602084015261281b816040850160208701612792565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212207a90bbbac65be8ab68e96b593afea147fc0ff0b83d9312f33b4a0b4dc4977a5b64736f6c634300080e00330000000000000000000000009bcf8b0b62f220f3900e2dc42deb85c3f79b405b00000000000000000000000000000000000000000000000000005af3107a4000Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101775760003560e01c806388c4cb36116100d8578063ab7de0981161008c578063e1a4e72a11610066578063e1a4e72a1461036f578063e2bbb15814610382578063f2fde38b1461039557600080fd5b8063ab7de09814610340578063c8a8e4f214610353578063ddc632621461035c57600080fd5b80638da5cb5b116100bd5780638da5cb5b146102c857806393f1a40b146102e6578063a36f3c8d1461032d57600080fd5b806388c4cb361461029a5780638a1017ed146102b557600080fd5b806351eb05a61161012f5780635ccbfa94116101145780635ccbfa9414610277578063630b5ba11461028a578063715018a61461029257600080fd5b806351eb05a6146102515780635312ea8e1461026457600080fd5b806317caf6f11161016057806317caf6f1146101e7578063441a3e70146101f05780634506add81461020557600080fd5b8063081e3eda1461017c5780631526fe2714610193575b600080fd5b6004545b6040519081526020015b60405180910390f35b6101a66101a1366004612522565b6103a8565b6040805173ffffffffffffffffffffffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a00161018a565b61018060035481565b6102036101fe36600461253b565b610403565b005b61022c7f0000000000000000000000009bcf8b0b62f220f3900e2dc42deb85c3f79b405b81565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161018a565b61020361025f366004612522565b6107d5565b610203610272366004612522565b610971565b610203610285366004612522565b610b60565b610203610c15565b610203610c3e565b61022c73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b6102036102c336600461257f565b610c52565b60005473ffffffffffffffffffffffffffffffffffffffff1661022c565b6103186102f43660046125b8565b60056020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161018a565b61031861033b3660046125b8565b610e1d565b61020361034e3660046125e8565b6110a3565b61018060025481565b61020361036a366004612522565b611431565b61020361037d36600461261f565b6116d0565b61020361039036600461253b565b6118af565b6102036103a336600461261f565b611be8565b600481815481106103b857600080fd5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff93841695509193909290911685565b600260015403610474576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155806104e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20696e76616c69642076616c75650000000000000000000000000000604482015260640161046b565b6104e9826107d5565b60003390506000600484815481106105035761050361263c565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff9081168452600182015484860152600282015484840152600382015460608501526004909101548116608084015289865293835280852093871685529290915291208054919250908411156105e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4d43573a2021616d6f756e740000000000000000000000000000000000000000604482015260640161046b565b805415610668576000816001015464e8d4a510008460600151846000015461060f919061269a565b61061991906126d7565b6106239190612712565b905061066673ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000009bcf8b0b62f220f3900e2dc42deb85c3f79b405b168583611c9c565b505b8381600001600082825461067c9190612712565b90915550506060820151815464e8d4a51000916106989161269a565b6106a291906126d7565b6001820155608082015173ffffffffffffffffffffffffffffffffffffffff8116156107555781546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b15801561073c57600080fd5b505af1158015610750573d6000803e3d6000fd5b505050505b82516107789073ffffffffffffffffffffffffffffffffffffffff168587611c9c565b858473ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568876040516107c191815260200190565b60405180910390a350506001805550505050565b6000600482815481106107ea576107ea61263c565b90600052602060002090600502019050806002015443111561096d5780546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610874573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108989190612729565b905080156109175760008260020154436108b29190612712565b905060006003548460010154600254846108cc919061269a565b6108d6919061269a565b6108e091906126d7565b9050826108f28264e8d4a5100061269a565b6108fc91906126d7565b84600301600082825461090f9190612742565b909155505050505b43600283018190556003830154604080518681526020810193909352820183905260608201527fb0a2ded49817748754bcca0474b24011f01d4574dd5c40e14197ffa2e6540fef906080015b60405180910390a1505b5050565b6002600154036109dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161046b565b600260015560003390506000600483815481106109fc576109fc61263c565b600091825260208083208684526005808352604080862073ffffffffffffffffffffffffffffffffffffffff891680885294529485902080549551919094029091019450919286927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059591610a739190815260200190565b60405180910390a3805460008083556001830155600483015473ffffffffffffffffffffffffffffffffffffffff168015610b31576040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526000602483015282169063560e39b290604401600060405180830381600087803b158015610b1857600080fd5b505af1158015610b2c573d6000803e3d6000fd5b505050505b8354610b549073ffffffffffffffffffffffffffffffffffffffff168684611c9c565b50506001805550505050565b610b68611d75565b60008111610bd2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642076616c756500000000000000000000000000000000000000604482015260640161046b565b610bda610c15565b60028190556040518181527f184d5c96ee55a1c4b45f8ab5cb8c540d01d82cdbeb22edf847be90025a4cae6b9060200160405180910390a150565b60045460005b8181101561096d57610c2c816107d5565b80610c368161275a565b915050610c1b565b610c46611d75565b610c506000611df6565b565b610c5a611d75565b600060048481548110610c6f57610c6f61263c565b9060005260206000209060050201905082816001015414610cb257806001015483600354610c9d9190612742565b610ca79190612712565b600355600181018390555b600481015473ffffffffffffffffffffffffffffffffffffffff838116911614610dbd5773ffffffffffffffffffffffffffffffffffffffff821615610d7a576040517f560e39b2000000000000000000000000000000000000000000000000000000008152600060048201819052602482015273ffffffffffffffffffffffffffffffffffffffff83169063560e39b290604401600060405180830381600087803b158015610d6157600080fd5b505af1158015610d75573d6000803e3d6000fd5b505050505b6004810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84161790555b6004810154604080518681526020810186905273ffffffffffffffffffffffffffffffffffffffff90921682820152517fff38300b7866933a8f16457ac835b1f4c31c3ac59d4b179b65a044b2d49cd09e9181900360600190a150505050565b600080600060048581548110610e3557610e3561263c565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff9081168452600182015484860152600282015484840152600382015460608501908152600492830154821660808601528c88529585528287208b821688529094528186209451835192517f70a08231000000000000000000000000000000000000000000000000000000008152309281019290925292965093949193919216906370a0823190602401602060405180830381865afa158015610f0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f329190612729565b9050836040015143118015610f4657508015155b15610fb6576000846040015143610f5d9190612712565b90506000600354866020015160025484610f77919061269a565b610f81919061269a565b610f8b91906126d7565b905082610f9d8264e8d4a5100061269a565b610fa791906126d7565b610fb19085612742565b935050505b6001830154835464e8d4a5100090610fcf90859061269a565b610fd991906126d7565b610fe39190612712565b955060007f0000000000000000000000009bcf8b0b62f220f3900e2dc42deb85c3f79b405b73ffffffffffffffffffffffffffffffffffffffff166377c7b8fc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611052573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110769190612729565b9050670de0b6b3a764000061108b828961269a565b61109591906126d7565b955050505050509250929050565b6110ab611d75565b6110b6600683611e6b565b1561111d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20616c72656164792061646465640000000000000000000000000000604482015260640161046b565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015611187573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190612729565b5073ffffffffffffffffffffffffffffffffffffffff811615611250576040517f560e39b2000000000000000000000000000000000000000000000000000000008152600060048201819052602482015273ffffffffffffffffffffffffffffffffffffffff82169063560e39b290604401600060405180830381600087803b15801561123757600080fd5b505af115801561124b573d6000803e3d6000fd5b505050505b82600360008282546112629190612742565b90915550506040805160a08101825273ffffffffffffffffffffffffffffffffffffffff8085168252602082018681524393830193845260006060840181815286841660808601908152600480546001810182559352945160059092027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810180549386167fffffffffffffffffffffffff000000000000000000000000000000000000000094851617905592517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c84015594517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d83015593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e82015591517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f909201805492909116919092161790556113be600683611e9f565b507fe72dff05c5a9817b99753fffdec6b7800cc743c2f4b1fbc3eeb93983712a2a4660016113eb60045490565b6113f59190612712565b604080519182526020820186905273ffffffffffffffffffffffffffffffffffffffff8086169183019190915283166060820152608001610963565b60026001540361149d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161046b565b60026001556114ab816107d5565b600081815260056020908152604080832033808552925282206004805492939192859081106114dc576114dc61263c565b600091825260208083206040805160a0810182526005909402909101805473ffffffffffffffffffffffffffffffffffffffff90811685526001820154938501939093526002810154918401919091526003810154606084018190526004909101549091166080830152845491935064e8d4a510009161155c919061269a565b61156691906126d7565b9050600083600101548261157a9190612712565b6001850183905590506115c473ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000009bcf8b0b62f220f3900e2dc42deb85c3f79b405b168683611c9c565b608083015173ffffffffffffffffffffffffffffffffffffffff8116156116725784546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b15801561165957600080fd5b505af115801561166d573d6000803e3d6000fd5b505050505b868673ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954846040516116bb91815260200190565b60405180910390a35050600180555050505050565b6116d8611d75565b73ffffffffffffffffffffffffffffffffffffffff8116611755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4d43573a20216164647265737300000000000000000000000000000000000000604482015260640161046b565b611760600682611e6b565b156117c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4d43573a20217374616b65645f746f6b656e0000000000000000000000000000604482015260640161046b565b7fffffffffffffffffffffffff111111111111111111111111111111111111111273ffffffffffffffffffffffffffffffffffffffff8216016118115761180e3347611ec1565b50565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa15801561187e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a29190612729565b905061096d823383611fcb565b60026001540361191b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161046b565b6002600155611929826107d5565b60003390506000600484815481106119435761194361263c565b600091825260208083206040805160a0810182526005948502909201805473ffffffffffffffffffffffffffffffffffffffff90811684526001820154848601526002820154848401526003820154606085015260049091015481166080840152898652938352808520938716855292909152912080549192509015611a8e576000816001015464e8d4a51000846060015184600001546119e4919061269a565b6119ee91906126d7565b6119f89190612712565b9050611a3b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000009bcf8b0b62f220f3900e2dc42deb85c3f79b405b168583611c9c565b858473ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae066092495483604051611a8491815260200190565b60405180910390a3505b83816000016000828254611aa29190612742565b90915550506060820151815464e8d4a5100091611abe9161269a565b611ac891906126d7565b6001820155608082015173ffffffffffffffffffffffffffffffffffffffff811615611b7b5781546040517f560e39b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201929092529082169063560e39b290604401600060405180830381600087803b158015611b6257600080fd5b505af1158015611b76573d6000803e3d6000fd5b505050505b8251611b9f9073ffffffffffffffffffffffffffffffffffffffff16853088612161565b858473ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15876040516107c191815260200190565b611bf0611d75565b73ffffffffffffffffffffffffffffffffffffffff8116611c93576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161046b565b61180e81611df6565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052611d709084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526121c5565b505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610c50576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161046b565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260018301602052604081205415155b90505b92915050565b6000611e968373ffffffffffffffffffffffffffffffffffffffff84166122d1565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff8416908390604051611ef891906127be565b60006040518083038185875af1925050503d8060008114611f35576040519150601f19603f3d011682016040523d82523d6000602084013e611f3a565b606091505b5050905080611d70576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c6564000000000000000000000000606482015260840161046b565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052915160009283929087169161206291906127be565b6000604051808303816000865af19150503d806000811461209f576040519150601f19603f3d011682016040523d82523d6000602084013e6120a4565b606091505b50915091508180156120ce5750805115806120ce5750808060200190518101906120ce91906127da565b61215a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c656400000000000000000000000000000000000000606482015260840161046b565b5050505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526121bf9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611cee565b50505050565b6000612227826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166123209092919063ffffffff16565b805190915015611d70578080602001905181019061224591906127da565b611d70576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161046b565b600081815260018301602052604081205461231857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611e99565b506000611e99565b606061232f8484600085612339565b90505b9392505050565b6060824710156123cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161046b565b73ffffffffffffffffffffffffffffffffffffffff85163b612449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161046b565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161247291906127be565b60006040518083038185875af1925050503d80600081146124af576040519150601f19603f3d011682016040523d82523d6000602084013e6124b4565b606091505b50915091506124c48282866124cf565b979650505050505050565b606083156124de575081612332565b8251156124ee5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046b91906127fc565b60006020828403121561253457600080fd5b5035919050565b6000806040838503121561254e57600080fd5b50508035926020909101359150565b73ffffffffffffffffffffffffffffffffffffffff8116811461180e57600080fd5b60008060006060848603121561259457600080fd5b833592506020840135915060408401356125ad8161255d565b809150509250925092565b600080604083850312156125cb57600080fd5b8235915060208301356125dd8161255d565b809150509250929050565b6000806000606084860312156125fd57600080fd5b83359250602084013561260f8161255d565b915060408401356125ad8161255d565b60006020828403121561263157600080fd5b81356123328161255d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156126d2576126d261266b565b500290565b60008261270d577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000828210156127245761272461266b565b500390565b60006020828403121561273b57600080fd5b5051919050565b600082198211156127555761275561266b565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361278b5761278b61266b565b5060010190565b60005b838110156127ad578181015183820152602001612795565b838111156121bf5750506000910152565b600082516127d0818460208701612792565b9190910192915050565b6000602082840312156127ec57600080fd5b8151801515811461233257600080fd5b602081526000825180602084015261281b816040850160208701612792565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212207a90bbbac65be8ab68e96b593afea147fc0ff0b83d9312f33b4a0b4dc4977a5b64736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009bcf8b0b62f220f3900e2dc42deb85c3f79b405b00000000000000000000000000000000000000000000000000005af3107a4000
-----Decoded View---------------
Arg [0] : _xWoo (address): 0x9BCf8b0B62F220f3900e2dc42dEB85C3f79b405B
Arg [1] : _xWooPerBlock (uint256): 100000000000000
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000009bcf8b0b62f220f3900e2dc42deb85c3f79b405b
Arg [1] : 00000000000000000000000000000000000000000000000000005af3107a4000Loading...LoadingLoading...Loading
Loading...Loading
Loading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...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.
Address QR Code
My Address - Private Name Tag or Note
My Name Tag:
Private Name Tags (up to 35 characters) can be used for easy identification of addressesPrivate Note:
A private note (up to 500 characters) can be attached to this address.
Please DO NOT store any passwords or private keys here.Compiler specific version warnings:
The compiled contract might be susceptible to VerbatimInvalidDeduplication (low-severity), FullInlinerNonExpressionSplitArgumentEvaluationOrder (low-severity), MissingSideEffectsOnSelectorAccess (low-severity), StorageWriteRemovalBeforeConditionalTermination (medium/high-severity), AbiReencodingHeadOverflowWithStaticArrayCleanup (medium-severity), DirtyBytesArrayToStorage (low-severity), InlineAssemblyMemorySideEffects (medium-severity) Solidity Compiler Bugs.
Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.Before You Copy
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.