Source Code
Latest 25 from a total of 6,803 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 18146201 | 175 days ago | IN | 0 ETH | 0.00000756 | ||||
| Withdraw | 18145462 | 175 days ago | IN | 0 ETH | 0.00000504 | ||||
| Withdraw | 18144970 | 175 days ago | IN | 0 ETH | 0.00000705 | ||||
| Withdraw | 18138162 | 175 days ago | IN | 0 ETH | 0.00000003 | ||||
| Withdraw | 17774428 | 179 days ago | IN | 0 ETH | 0.00000001 | ||||
| Withdraw | 17774382 | 179 days ago | IN | 0 ETH | 0.00000003 | ||||
| Deposit | 17431146 | 187 days ago | IN | 0 ETH | 0.00000014 | ||||
| Withdraw | 17431118 | 187 days ago | IN | 0 ETH | 0.0000013 | ||||
| Deposit | 17431048 | 187 days ago | IN | 0 ETH | 0.00000079 | ||||
| Withdraw | 17430979 | 187 days ago | IN | 0 ETH | 0.00000003 | ||||
| Withdraw | 17424746 | 187 days ago | IN | 0 ETH | 0.00000114 | ||||
| Withdraw | 17376089 | 189 days ago | IN | 0 ETH | 0.00000137 | ||||
| Withdraw | 17333085 | 190 days ago | IN | 0 ETH | 0.00000341 | ||||
| Withdraw | 17333076 | 190 days ago | IN | 0 ETH | 0.00000341 | ||||
| Withdraw | 17333068 | 190 days ago | IN | 0 ETH | 0.00000466 | ||||
| Withdraw | 17249684 | 192 days ago | IN | 0 ETH | 0.0000008 | ||||
| Deposit | 17242595 | 192 days ago | IN | 0 ETH | 0.00000081 | ||||
| Withdraw | 17132248 | 197 days ago | IN | 0 ETH | 0.00000254 | ||||
| Withdraw | 17068995 | 199 days ago | IN | 0 ETH | 0.00000292 | ||||
| Withdraw | 17068393 | 199 days ago | IN | 0 ETH | 0.00000292 | ||||
| Withdraw | 17040938 | 200 days ago | IN | 0 ETH | 0.00000292 | ||||
| Withdraw | 17007577 | 202 days ago | IN | 0 ETH | 0.00000189 | ||||
| Withdraw | 17005292 | 202 days ago | IN | 0 ETH | 0.00000166 | ||||
| Withdraw | 17005254 | 202 days ago | IN | 0 ETH | 0.00000302 | ||||
| Withdraw | 16962198 | 204 days ago | IN | 0 ETH | 0.00000292 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ZProtocolFarmMaster
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./interface/ITreasurer.sol";
import "./interface/IZPToken.sol";
contract ZProtocolFarmMaster is Ownable, ReentrancyGuard {
using SafeERC20 for IERC20;
modifier onlyDev() {
require(msg.sender == dev, "ZProtocol: caller is not the dev");
_;
}
modifier onlyFeeCollector() {
require(
msg.sender == feeCollector,
"ZProtocol: caller is not the fee collector"
);
_;
}
// Category informations
struct CatInfo {
// Allocation points assigned to this category
uint256 allocPoints;
// Total pool allocation points. Must be at all time equal to the sum of all
// pool allocation points in this category.
uint256 totalPoolAllocPoints;
// Name of this category
string name;
}
// User informations
struct UserInfo {
// Amount of tokens deposited
uint256 amount;
// Reward debt.
//
// We do some fancy math here. Basically, any point in time, the amount of ZPs
// entitled to a user but is pending to be distributed is:
//
// pending reward = (user.amount * pool.accZPPerShare) - user.rewardDebt + user.locked
//
// Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
// 1. The pool's `accZPPerShare` (and `lastRewardTime`) gets updated.
// 2. User receives the available reward sent to his/her address.
// 3. User's `amount` gets updated.
// 4. User's `rewardDebt` gets updated.
uint256 rewardDebt;
// Time at which user can harvest this pool again
uint256 nextHarvestTime;
// Reward that will be unlockable when nextHarvestTime is reached
uint256 lockedReward;
}
// Pool informations
struct PoolInfo {
// Address of this pool's token
IERC20 token;
// Category ID of this pool
uint256 catId;
// Allocation points assigned to this pool
uint256 allocPoints;
// Last time where ZP was distributed.
uint256 lastRewardTime;
// Accumulated ZP per share, times 1e18. Used for rewardDebt calculations.
uint256 accZPPerShare;
// Deposit fee for this pool, in basis points (from 0 to 10000)
uint256 depositFeeBP;
// Harvest interval for this pool, in seconds
uint256 harvestInterval;
}
// The following limits exist to ensure that the owner of ZProtocolFarmMaster will
// only modify the contract's settings in a specific range of value, that
// the users can see by themselves at any time.
// Maximum harvest interval that can be set
uint256 public constant MAX_HARVEST_INTERVAL = 24 hours;
// Maximum deposit fee that can be set
uint256 public constant MAX_DEPOSIT_FEE_BP = 400;
// Maximum ZP reward per second that can be set
uint256 public constant MAX_ZP_PER_SECOND = 4629629629629629630; // ~400k/d
// The informations of each category
CatInfo[] public catInfo;
// The pools in each category. Used in front.
mapping(uint256 => uint256[]) public catPools;
// Total category allocation points. Must be at all time equal to the sum of
// all category allocation points.
uint256 public totalCatAllocPoints = 0;
// The informations of each pool
PoolInfo[] public poolInfo;
// Mapping to keep track of which token has been added, and its index in the
// array.
mapping(address => uint256) public tokensAdded;
// The informations of each user, per pool
mapping(uint256 => mapping(address => UserInfo)) public userInfo;
// The ZP token
IZPToken public immutable zp;
// The Treasurer. Handles rewards.
ITreasurer public immutable treasurer;
// ZP minted to devs per second
uint256 public devZPPerSecond;
// ZP minted as rewards per second
uint256 public rewardZPPerSecond;
// The address to send dev funds to
address public dev;
// The address to send fees to
address public feeCollector;
// Launch time
uint256 public startTime;
// Farming duration, in seconds
uint256 public farmingDuration;
event CategoryCreate(uint256 id, string indexed name, uint256 allocPoints);
event CategoryEdit(uint256 id, uint256 allocPoints);
event PoolCreate(
address indexed token,
uint256 indexed catId,
uint256 allocPoints,
uint256 depositFeeBP,
uint256 harvestInterval
);
event PoolEdit(
address indexed token,
uint256 indexed catId,
uint256 allocPoints,
uint256 depositFeeBP,
uint256 harvestInterval
);
event Deposit(
address indexed user,
uint256 indexed pid,
uint256 amount,
uint256 fee
);
event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
event EmergencyWithdraw(
address indexed user,
uint256 indexed pid,
uint256 amount
);
constructor(
IZPToken _zp,
ITreasurer _treasurer,
address _dev,
address _feeCollector,
uint256 _initZPPerSecond,
uint256 _startTime
) {
zp = _zp;
treasurer = _treasurer;
require(
_initZPPerSecond <= MAX_ZP_PER_SECOND,
"ZProtocol: too high ZP reward"
);
devZPPerSecond = _initZPPerSecond / 10;
rewardZPPerSecond = _initZPPerSecond - devZPPerSecond;
require(_dev != address(0), "ZProtocol: null address not permitted");
dev = _dev;
require(
_feeCollector != address(0),
"ZProtocol: null address not permitted"
);
feeCollector = _feeCollector;
startTime = _startTime;
if (startTime < block.timestamp) {
startTime = block.timestamp;
}
farmingDuration =
(_zp.maxSupply() - _zp.totalMinted()) /
_initZPPerSecond;
}
// Update the starting time. Can only be called by the owner.
// Can only be called before current starting time.
// Can only be called if there is no pool registered.
function updateStartTime(uint256 _newStartTime) external onlyOwner {
require(
block.timestamp < startTime,
"ZProtocol: cannot change startTime after farming has already started."
);
require(
poolInfo.length == 0,
"ZProtocol: cannot change startTime after a pool has been registered."
);
require(
_newStartTime > block.timestamp,
"ZProtocol: cannot change startTime with a past timestamp."
);
startTime = _newStartTime;
}
// Update the dev address. Can only be called by the dev.
function updateDev(address _newDev) public onlyDev {
require(_newDev != address(0), "ZProtocol: null address not permitted");
dev = _newDev;
}
// Update the fee address. Can only be called by the fee collector.
function updateFeeCollector(
address _newFeeCollector
) public onlyFeeCollector {
require(
_newFeeCollector != address(0),
"ZProtocol: null address not permitted"
);
feeCollector = _newFeeCollector;
}
// Update the ZP per second reward. Can only be called by the owner.
function updateZPPerSecond(
uint256 _newZPPerSecond,
bool _withUpdate
) public onlyOwner {
require(
_newZPPerSecond <= MAX_ZP_PER_SECOND,
"ZProtocol: too high ZP reward"
);
if (_withUpdate) {
massUpdatePools();
}
devZPPerSecond = _newZPPerSecond / 10;
rewardZPPerSecond = _newZPPerSecond - devZPPerSecond;
_updateEndTime();
}
function elapsedTime() public view returns (uint256) {
if (block.timestamp > startTime) {
return block.timestamp - startTime;
}
return 0;
}
function _updateEndTime() internal {
farmingDuration =
elapsedTime() +
(zp.maxSupply() - zp.totalMinted()) /
ZPPerSecond();
}
function updateEndTime(bool _withUpdate) external onlyOwner {
if (_withUpdate) {
massUpdatePools();
}
_updateEndTime();
}
// View function to check the total ZP generated every second
function ZPPerSecond() public view returns (uint256) {
return devZPPerSecond + rewardZPPerSecond;
}
// View function to check if user can harvest pool
function canHarvest(
uint256 _poolId,
address _user
) public view returns (bool) {
return block.timestamp >= userInfo[_poolId][_user].nextHarvestTime;
}
// Create a new pool category. Can only be called by the owner.
function createCategory(
string calldata _name,
uint256 _allocPoints,
bool _withUpdate
) public onlyOwner {
if (_withUpdate) {
massUpdatePools();
}
totalCatAllocPoints += _allocPoints;
catInfo.push(
CatInfo({name: _name, allocPoints: _allocPoints, totalPoolAllocPoints: 0})
);
emit CategoryCreate(catInfo.length - 1, _name, _allocPoints);
}
// Edit a pool category. Can only be called by the owner.
function editCategory(
uint256 _catId,
uint256 _allocPoints,
bool _withUpdate
) public onlyOwner {
require(_catId < catInfo.length, "ZProtocol: category does not exist");
if (_withUpdate) {
massUpdatePools();
}
totalCatAllocPoints =
totalCatAllocPoints -
catInfo[_catId].allocPoints +
_allocPoints;
catInfo[_catId].allocPoints = _allocPoints;
emit CategoryEdit(_catId, _allocPoints);
}
// Create a new token pool, after checking that it doesn't already exist.
// Can only be called by owner.
function createPool(
uint256 _catId,
IERC20 _token,
uint256 _allocPoints,
uint256 _depositFeeBP,
uint256 _harvestInterval,
bool _withUpdate
) public onlyOwner {
require(_catId < catInfo.length, "ZProtocol: category does not exist");
require(
_harvestInterval <= MAX_HARVEST_INTERVAL,
"ZProtocol: too high harvest interval"
);
require(
_depositFeeBP <= MAX_DEPOSIT_FEE_BP,
"ZProtocol: too high deposit fee"
);
address tokenAddress = address(_token);
require(
tokensAdded[tokenAddress] == 0,
"ZProtocol: token already registered"
);
if (_withUpdate) {
massUpdatePools();
}
uint256 lastRewardTime = block.timestamp > startTime
? block.timestamp
: startTime;
catInfo[_catId].totalPoolAllocPoints += _allocPoints;
tokensAdded[tokenAddress] = poolInfo.length + 1;
poolInfo.push(
PoolInfo({
catId: _catId,
token: _token,
allocPoints: _allocPoints,
lastRewardTime: lastRewardTime,
accZPPerShare: 0,
depositFeeBP: _depositFeeBP,
harvestInterval: _harvestInterval
})
);
catPools[_catId].push(poolInfo.length - 1);
emit PoolCreate(
tokenAddress,
_catId,
_allocPoints,
_depositFeeBP,
_harvestInterval
);
}
// Edits a new token pool. Can only be called by owner.
function editPool(
uint256 _poolId,
uint256 _allocPoints,
uint256 _depositFeeBP,
uint256 _harvestInterval,
bool _withUpdate
) public onlyOwner {
require(_poolId < poolInfo.length, "ZProtocol: pool does not exist");
require(
_harvestInterval <= MAX_HARVEST_INTERVAL,
"ZProtocol: too high harvest interval"
);
require(
_depositFeeBP <= MAX_DEPOSIT_FEE_BP,
"ZProtocol: too high deposit fee"
);
if (_withUpdate) {
massUpdatePools();
}
uint256 catId = poolInfo[_poolId].catId;
catInfo[catId].totalPoolAllocPoints =
catInfo[catId].totalPoolAllocPoints -
poolInfo[_poolId].allocPoints +
_allocPoints;
poolInfo[_poolId].allocPoints = _allocPoints;
poolInfo[_poolId].depositFeeBP = _depositFeeBP;
poolInfo[_poolId].harvestInterval = _harvestInterval;
emit PoolEdit(
address(poolInfo[_poolId].token),
poolInfo[_poolId].catId,
_allocPoints,
_depositFeeBP,
_harvestInterval
);
}
function getMultiplier(
uint256 _from,
uint256 _to
) public view returns (uint256) {
uint256 _endTime = endTime();
if (_from >= _endTime) {
return 0;
}
if (_to > _endTime) {
return _endTime - _from;
}
return _to - _from;
}
// Internal function to dispatch pool reward for sender.
// Does one of two things:
// - Reward the user through treasurer
// - Lock up rewards for later harvest
function _dispatchReward(uint256 _poolId) internal {
PoolInfo storage pool = poolInfo[_poolId];
UserInfo storage user = userInfo[_poolId][msg.sender];
if (user.nextHarvestTime == 0) {
user.nextHarvestTime = block.timestamp + pool.harvestInterval;
}
uint256 pending = (user.amount * pool.accZPPerShare) /
1e18 -
user.rewardDebt;
if (block.timestamp >= user.nextHarvestTime) {
if (pending > 0 || user.lockedReward > 0) {
uint256 totalReward = pending + user.lockedReward;
user.lockedReward = 0;
user.nextHarvestTime = block.timestamp + pool.harvestInterval;
treasurer.rewardUser(msg.sender, totalReward);
}
} else if (pending > 0) {
user.lockedReward += pending;
}
}
// Deposits tokens into a pool.
function deposit(uint256 _poolId, uint256 _amount) public nonReentrant {
PoolInfo storage pool = poolInfo[_poolId];
require(pool.allocPoints != 0, "ZProtocol: pool is disabled");
require(
catInfo[pool.catId].allocPoints != 0,
"ZProtocol: category is disabled"
);
UserInfo storage user = userInfo[_poolId][msg.sender];
updatePool(_poolId);
_dispatchReward(_poolId);
uint256 depositFee = (_amount * pool.depositFeeBP) / 1e4;
if (_amount > 0) {
pool.token.safeTransferFrom(msg.sender, address(this), _amount);
if (pool.depositFeeBP > 0) {
pool.token.safeTransfer(feeCollector, depositFee);
user.amount += _amount - depositFee;
} else {
user.amount += _amount;
}
user.nextHarvestTime = block.timestamp + pool.harvestInterval;
}
user.rewardDebt = (user.amount * pool.accZPPerShare) / 1e18;
emit Deposit(msg.sender, _poolId, _amount, depositFee);
}
// Withdraw tokens from a pool.
function withdraw(uint256 _poolId, uint256 _amount) public nonReentrant {
PoolInfo storage pool = poolInfo[_poolId];
UserInfo storage user = userInfo[_poolId][msg.sender];
require(user.amount >= _amount, "ZProtocol: bad withdrawal");
updatePool(_poolId);
_dispatchReward(_poolId);
user.amount -= _amount;
user.rewardDebt = (user.amount * pool.accZPPerShare) / 1e18;
if (_amount > 0) {
pool.token.safeTransfer(msg.sender, _amount);
}
emit Withdraw(msg.sender, _poolId, _amount);
}
// EMERGENCY ONLY. Withdraw tokens, give rewards up.
function emergencyWithdraw(uint256 _poolId) public nonReentrant {
PoolInfo storage pool = poolInfo[_poolId];
UserInfo storage user = userInfo[_poolId][msg.sender];
pool.token.safeTransfer(address(msg.sender), user.amount);
emit EmergencyWithdraw(msg.sender, _poolId, user.amount);
user.amount = 0;
user.rewardDebt = 0;
user.lockedReward = 0;
user.nextHarvestTime = 0;
}
// Update all pool at ones. Watch gas spendings.
function massUpdatePools() public {
uint256 length = poolInfo.length;
for (uint256 poolId = 0; poolId < length; poolId++) {
updatePool(poolId);
}
}
// Update a single pool's reward variables, and mints rewards.
// If the pool has no tokenSupply, then the reward will be fully sent to the
// dev fund. This is done so that the amount of tokens minted every second
// is stable, and the end of farming is predictable and only impacted by
// updateZPPerSecond.
function updatePool(uint256 _poolId) public {
PoolInfo storage pool = poolInfo[_poolId];
if (
block.timestamp <= pool.lastRewardTime ||
pool.allocPoints == 0 ||
catInfo[pool.catId].allocPoints == 0
) {
return;
}
uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp);
if (multiplier == 0) {
pool.lastRewardTime = block.timestamp;
return;
}
uint256 tokenSupply = pool.token.balanceOf(address(this));
CatInfo storage cat = catInfo[pool.catId];
uint256 userReward = (((multiplier *
rewardZPPerSecond *
pool.allocPoints) / cat.totalPoolAllocPoints) * cat.allocPoints) /
totalCatAllocPoints;
uint256 devReward = (((multiplier * devZPPerSecond * pool.allocPoints) /
cat.totalPoolAllocPoints) * cat.allocPoints) / totalCatAllocPoints;
pool.lastRewardTime = block.timestamp;
if (tokenSupply == 0) {
zp.mint(dev, userReward);
} else {
pool.accZPPerShare += (userReward * 1e18) / tokenSupply;
zp.mint(address(treasurer), userReward);
}
zp.mint(dev, devReward);
}
/**
*
* @param _poolId the pool id to check pending rewards for
* @param _user the user to check pending rewards for
* @return pendingReward
* @return currentTimestamp
*/
function pendingReward(
uint256 _poolId,
address _user
) external view returns (uint256, uint256) {
PoolInfo storage pool = poolInfo[_poolId];
UserInfo storage user = userInfo[_poolId][_user];
CatInfo storage cat = catInfo[pool.catId];
uint256 accZPPerShare = pool.accZPPerShare;
uint256 tokenSupply = pool.token.balanceOf(address(this));
if (block.timestamp > pool.lastRewardTime && tokenSupply != 0) {
uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp);
if (multiplier != 0) {
uint256 userReward = (((multiplier *
rewardZPPerSecond *
pool.allocPoints) / cat.totalPoolAllocPoints) * cat.allocPoints) /
totalCatAllocPoints;
accZPPerShare += (userReward * 1e18) / tokenSupply;
}
}
return (
(user.amount * accZPPerShare) /
1e18 -
user.rewardDebt +
user.lockedReward,
block.timestamp
);
}
function poolsLength() external view returns (uint256) {
return poolInfo.length;
}
function categoriesLength() external view returns (uint256) {
return catInfo.length;
}
function poolsInCategory(
uint256 _catId
) external view returns (uint256[] memory) {
return catPools[_catId];
}
function endTime() public view returns (uint256) {
return startTime + farmingDuration;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
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].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
* Revert on invalid signature.
*/
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return
success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Rewards manager
interface ITreasurer {
// Assigns reward to user
function rewardUser(address _user, uint256 _amount) external;
// Allows user to claim reward
function claimReward(uint256[] calldata _weeksToClaim) external;
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IZPToken is IERC20 {
event Burn(address indexed from, uint256 value);
function maxSupply() external returns (uint256);
function totalMinted() external returns (uint256);
function mint(address _to, uint256 _amount) external;
function burn(uint256 _amount) external;
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IZPToken","name":"_zp","type":"address"},{"internalType":"contract ITreasurer","name":"_treasurer","type":"address"},{"internalType":"address","name":"_dev","type":"address"},{"internalType":"address","name":"_feeCollector","type":"address"},{"internalType":"uint256","name":"_initZPPerSecond","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"uint256","name":"allocPoints","type":"uint256"}],"name":"CategoryCreate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoints","type":"uint256"}],"name":"CategoryEdit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"catId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoints","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositFeeBP","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"harvestInterval","type":"uint256"}],"name":"PoolCreate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"catId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoints","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositFeeBP","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"harvestInterval","type":"uint256"}],"name":"PoolEdit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MAX_DEPOSIT_FEE_BP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_HARVEST_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ZP_PER_SECOND","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ZPPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"canHarvest","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"catInfo","outputs":[{"internalType":"uint256","name":"allocPoints","type":"uint256"},{"internalType":"uint256","name":"totalPoolAllocPoints","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"catPools","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"categoriesLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_allocPoints","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"createCategory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_catId","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_allocPoints","type":"uint256"},{"internalType":"uint256","name":"_depositFeeBP","type":"uint256"},{"internalType":"uint256","name":"_harvestInterval","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"createPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dev","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devZPPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_catId","type":"uint256"},{"internalType":"uint256","name":"_allocPoints","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"editCategory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_allocPoints","type":"uint256"},{"internalType":"uint256","name":"_depositFeeBP","type":"uint256"},{"internalType":"uint256","name":"_harvestInterval","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"editPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"elapsedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmingDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_poolId","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"catId","type":"uint256"},{"internalType":"uint256","name":"allocPoints","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accZPPerShare","type":"uint256"},{"internalType":"uint256","name":"depositFeeBP","type":"uint256"},{"internalType":"uint256","name":"harvestInterval","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_catId","type":"uint256"}],"name":"poolsInCategory","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardZPPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokensAdded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCatAllocPoints","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":[],"name":"treasurer","outputs":[{"internalType":"contract ITreasurer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newDev","type":"address"}],"name":"updateDev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"updateEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newFeeCollector","type":"address"}],"name":"updateFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newStartTime","type":"uint256"}],"name":"updateStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newZPPerSecond","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"updateZPPerSecond","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"},{"internalType":"uint256","name":"nextHarvestTime","type":"uint256"},{"internalType":"uint256","name":"lockedReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"zp","outputs":[{"internalType":"contract IZPToken","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60c060405260006004553480156200001657600080fd5b50604051620052aa380380620052aa83398181016040528101906200003c9190620005d2565b6200005c62000050620003d760201b60201c565b620003df60201b60201c565b600180819055508573ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508473ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff168152505067403fbf9e8bb284be82111562000119576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200011090620006cf565b60405180910390fd5b600a826200012891906200074f565b600881905550600854826200013e919062000787565b600981905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603620001b6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001ad9062000838565b60405180910390fd5b83600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160362000269576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002609062000838565b60405180910390fd5b82600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600c8190555042600c541015620002c45742600c819055505b818673ffffffffffffffffffffffffffffffffffffffff1663a2309ff86040518163ffffffff1660e01b81526004016020604051808303816000875af115801562000313573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200033991906200085a565b8773ffffffffffffffffffffffffffffffffffffffff1663d5abeb016040518163ffffffff1660e01b81526004016020604051808303816000875af115801562000387573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003ad91906200085a565b620003b9919062000787565b620003c591906200074f565b600d819055505050505050506200088c565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004d582620004a8565b9050919050565b6000620004e982620004c8565b9050919050565b620004fb81620004dc565b81146200050757600080fd5b50565b6000815190506200051b81620004f0565b92915050565b60006200052e82620004c8565b9050919050565b620005408162000521565b81146200054c57600080fd5b50565b600081519050620005608162000535565b92915050565b6200057181620004c8565b81146200057d57600080fd5b50565b600081519050620005918162000566565b92915050565b6000819050919050565b620005ac8162000597565b8114620005b857600080fd5b50565b600081519050620005cc81620005a1565b92915050565b60008060008060008060c08789031215620005f257620005f1620004a3565b5b60006200060289828a016200050a565b96505060206200061589828a016200054f565b95505060406200062889828a0162000580565b94505060606200063b89828a0162000580565b93505060806200064e89828a01620005bb565b92505060a06200066189828a01620005bb565b9150509295509295509295565b600082825260208201905092915050565b7f5a50726f746f636f6c3a20746f6f2068696768205a5020726577617264000000600082015250565b6000620006b7601d836200066e565b9150620006c4826200067f565b602082019050919050565b60006020820190508181036000830152620006ea81620006a8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006200075c8262000597565b9150620007698362000597565b9250826200077c576200077b620006f1565b5b828204905092915050565b6000620007948262000597565b9150620007a18362000597565b9250828203905081811115620007bc57620007bb62000720565b5b92915050565b7f5a50726f746f636f6c3a206e756c6c2061646472657373206e6f74207065726d60008201527f6974746564000000000000000000000000000000000000000000000000000000602082015250565b6000620008206025836200066e565b91506200082d82620007c2565b604082019050919050565b60006020820190508181036000830152620008538162000811565b9050919050565b600060208284031215620008735762000872620004a3565b5b60006200088384828501620005bb565b91505092915050565b60805160a0516149c7620008e36000396000818161146701528181612700015261292301526000818161133e0152818161142b015281816114d90152818161261101528181612b3e0152612bcf01526149c76000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c8063715018a611610151578063ab806935116100c3578063e2bbb15811610087578063e2bbb15814610720578063e8d663d31461073c578063eb652e311461075a578063ec7dccb414610778578063f2fde38b146107a8578063fda49eb4146107c457610269565b8063ab8069351461066a578063bbab0f641461069a578063c415b95c146106ca578063cd905073146106e8578063d2c35ce81461070457610269565b80638da5cb5b116101155780638da5cb5b1461057e5780638dbb1e3a1461059c57806391cca3db146105cc578063934c1938146105ea57806393f1a40b1461060657806398969e821461063957610269565b8063715018a6146104fe57806373661e691461050857806375c7fbc21461052657806378e97925146105425780638bdfb9b51461056057610269565b8063369f0be7116101ea57806351453f9d116101ae57806351453f9d1461045057806351eb05a61461046e5780635312ea8e1461048a5780635b647eb0146104a6578063630b5ba1146104c257806366b0d80d146104cc57610269565b8063369f0be7146103c057806337caa6e7146103de578063441a3e70146103fc57806344ea8a37146104185780634633ec521461043457610269565b80632716ae66116102315780632716ae661461031a578063277c95f6146103385780632c7192d8146103565780632e6c998d146103725780633197cbb6146103a257610269565b806306bcf02f1461026e5780630c7d67631461028a5780630cbbc7de146102a85780630d15e044146102c65780631526fe27146102e4575b600080fd5b61028860048036038101906102839190612ff2565b6107e2565b005b6102926108c2565b60405161029f919061302e565b60405180910390f35b6102b06108c8565b6040516102bd919061302e565b60405180910390f35b6102ce6108ce565b6040516102db919061302e565b60405180910390f35b6102fe60048036038101906102f99190612ff2565b6108d5565b60405161031197969594939291906130c8565b60405180910390f35b610322610947565b60405161032f919061302e565b60405180910390f35b610340610954565b60405161034d919061302e565b60405180910390f35b610370600480360381019061036b919061316f565b61095a565b005b61038c60048036038101906103879190613228565b610c3a565b6040516103999190613277565b60405180910390f35b6103aa610c9b565b6040516103b7919061302e565b60405180910390f35b6103c8610cb2565b6040516103d5919061302e565b60405180910390f35b6103e6610cbe565b6040516103f3919061302e565b60405180910390f35b61041660048036038101906104119190613292565b610cc4565b005b610432600480360381019061042d9190613337565b610e9f565b005b61044e600480360381019061044991906133ab565b610fee565b005b6104586110f8565b604051610465919061302e565b60405180910390f35b61048860048036038101906104839190612ff2565b611121565b005b6104a4600480360381019061049f9190612ff2565b611590565b005b6104c060048036038101906104bb919061343c565b6116ed565b005b6104ca611aa7565b005b6104e660048036038101906104e19190612ff2565b611adc565b6040516104f593929190613559565b60405180910390f35b610506611b9e565b005b610510611bb2565b60405161051d919061302e565b60405180910390f35b610540600480360381019061053b9190613597565b611bbf565b005b61054a611be1565b604051610557919061302e565b60405180910390f35b610568611be7565b604051610575919061302e565b60405180910390f35b610586611bed565b60405161059391906135d3565b60405180910390f35b6105b660048036038101906105b19190613292565b611c16565b6040516105c3919061302e565b60405180910390f35b6105d4611c66565b6040516105e191906135d3565b60405180910390f35b61060460048036038101906105ff91906135ee565b611c8c565b005b610620600480360381019061061b9190613228565b611dcf565b604051610630949392919061361b565b60405180910390f35b610653600480360381019061064e9190613228565b611e0c565b604051610661929190613660565b60405180910390f35b610684600480360381019061067f9190612ff2565b61205f565b6040516106919190613747565b60405180910390f35b6106b460048036038101906106af91906135ee565b6120ca565b6040516106c1919061302e565b60405180910390f35b6106d26120e2565b6040516106df91906135d3565b60405180910390f35b61070260048036038101906106fd9190613769565b612108565b005b61071e600480360381019061071991906135ee565b61219d565b005b61073a60048036038101906107359190613292565b6122e0565b005b61074461260f565b60405161075191906137ca565b60405180910390f35b610762612633565b60405161076f919061302e565b60405180910390f35b610792600480360381019061078d9190613292565b61264a565b60405161079f919061302e565b60405180910390f35b6107c260048036038101906107bd91906135ee565b61267b565b005b6107cc6126fe565b6040516107d99190613806565b60405180910390f35b6107ea612722565b600c54421061082e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610825906138b9565b60405180910390fd5b600060058054905014610876576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086d90613971565b60405180910390fd5b4281116108b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108af90613a03565b60405180910390fd5b80600c8190555050565b600d5481565b60085481565b6201518081565b600581815481106108e557600080fd5b90600052602060002090600702016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040154908060050154908060060154905087565b6000600580549050905090565b60045481565b610962612722565b60058054905085106109a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a090613a6f565b60405180910390fd5b620151808211156109ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e690613b01565b60405180910390fd5b610190831115610a34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2b90613b6d565b60405180910390fd5b8015610a4357610a42611aa7565b5b600060058681548110610a5957610a58613b8d565b5b90600052602060002090600702016001015490508460058781548110610a8257610a81613b8d565b5b90600052602060002090600702016002015460028381548110610aa857610aa7613b8d565b5b906000526020600020906003020160010154610ac49190613beb565b610ace9190613c1f565b60028281548110610ae257610ae1613b8d565b5b9060005260206000209060030201600101819055508460058781548110610b0c57610b0b613b8d565b5b9060005260206000209060070201600201819055508360058781548110610b3657610b35613b8d565b5b9060005260206000209060070201600501819055508260058781548110610b6057610b5f613b8d565b5b90600052602060002090600702016006018190555060058681548110610b8957610b88613b8d565b5b90600052602060002090600702016001015460058781548110610baf57610bae613b8d565b5b906000526020600020906007020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fd516bf05712248cfe5d9bb7e6016f2a8ae61c8cbda723aac3059cd9cbc173fde878787604051610c2a93929190613c53565b60405180910390a3505050505050565b60006007600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154421015905092915050565b6000600d54600c54610cad9190613c1f565b905090565b67403fbf9e8bb284be81565b61019081565b610ccc6127a0565b600060058381548110610ce257610ce1613b8d565b5b9060005260206000209060070201905060006007600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508281600001541015610d8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8490613cd6565b60405180910390fd5b610d9684611121565b610d9f846127ef565b82816000016000828254610db39190613beb565b92505081905550670de0b6b3a764000082600401548260000154610dd79190613cf6565b610de19190613d67565b81600101819055506000831115610e4257610e4133848460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129e19092919063ffffffff16565b5b833373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56885604051610e89919061302e565b60405180910390a35050610e9b612a67565b5050565b610ea7612722565b8015610eb657610eb5611aa7565b5b8160046000828254610ec89190613c1f565b92505081905550600260405180606001604052808481526020016000815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000155602082015181600101556040820151816002019081610f839190613fc9565b5050508383604051610f969291906140da565b60405180910390207f2693e3e53273a2771d7b42da08be41fadb0ab4b1043fb6b0d2c67883e708a48b6001600280549050610fd19190613beb565b84604051610fe0929190613660565b60405180910390a250505050565b610ff6612722565b600280549050831061103d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103490614165565b60405180910390fd5b801561104c5761104b611aa7565b5b816002848154811061106157611060613b8d565b5b9060005260206000209060030201600001546004546110809190613beb565b61108a9190613c1f565b60048190555081600284815481106110a5576110a4613b8d565b5b9060005260206000209060030201600001819055507f4db1ff07b777d5d3cb772fbe3aac7d1db9eee1c30cb9edeb557b329989e5b7e783836040516110eb929190613660565b60405180910390a1505050565b6000600c5442111561111957600c54426111129190613beb565b905061111e565b600090505b90565b60006005828154811061113757611136613b8d565b5b9060005260206000209060070201905080600301544211158061115e575060008160020154145b8061119257506000600282600101548154811061117e5761117d613b8d565b5b906000526020600020906003020160000154145b1561119d575061158d565b60006111ad826003015442611c16565b9050600081036111c757428260030181905550505061158d565b60008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161122691906135d3565b602060405180830381865afa158015611243573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611267919061419a565b90506000600284600101548154811061128357611282613b8d565b5b906000526020600020906003020190506000600454826000015483600101548760020154600954886112b59190613cf6565b6112bf9190613cf6565b6112c99190613d67565b6112d39190613cf6565b6112dd9190613d67565b90506000600454836000015484600101548860020154600854896113019190613cf6565b61130b9190613cf6565b6113159190613d67565b61131f9190613cf6565b6113299190613d67565b9050428660030181905550600084036113f0577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f19600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b81526004016113b99291906141c7565b600060405180830381600087803b1580156113d357600080fd5b505af11580156113e7573d6000803e3d6000fd5b505050506114d7565b83670de0b6b3a7640000836114059190613cf6565b61140f9190613d67565b8660040160008282546114229190613c1f565b925050819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f197f0000000000000000000000000000000000000000000000000000000000000000846040518363ffffffff1660e01b81526004016114a49291906141c7565b600060405180830381600087803b1580156114be57600080fd5b505af11580156114d2573d6000803e3d6000fd5b505050505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f19600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b81526004016115549291906141c7565b600060405180830381600087803b15801561156e57600080fd5b505af1158015611582573d6000803e3d6000fd5b505050505050505050505b50565b6115986127a0565b6000600582815481106115ae576115ad613b8d565b5b9060005260206000209060070201905060006007600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506116653382600001548460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129e19092919063ffffffff16565b823373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059583600001546040516116b0919061302e565b60405180910390a36000816000018190555060008160010181905550600081600301819055506000816002018190555050506116ea612a67565b50565b6116f5612722565b600280549050861061173c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173390614165565b60405180910390fd5b62015180821115611782576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177990613b01565b60405180910390fd5b6101908311156117c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117be90613b6d565b60405180910390fd5b60008590506000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541461184e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184590614262565b60405180910390fd5b811561185d5761185c611aa7565b5b6000600c54421161187057600c54611872565b425b9050856002898154811061188957611888613b8d565b5b906000526020600020906003020160010160008282546118a99190613c1f565b9250508190555060016005805490506118c29190613c1f565b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060056040518060e001604052808973ffffffffffffffffffffffffffffffffffffffff1681526020018a81526020018881526020018381526020016000815260200187815260200186815250908060018154018082558091505060019003906000526020600020906007020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c082015181600601555050600360008981526020019081526020016000206001600580549050611a249190613beb565b9080600181540180825580915050600190039060005260206000200160009091909190915055878273ffffffffffffffffffffffffffffffffffffffff167f075a2211ef19062dfbd74d88bb38de002cee015815ad5b453fb3c903947b8151888888604051611a9593929190613c53565b60405180910390a35050505050505050565b6000600580549050905060005b81811015611ad857611ac581611121565b8080611ad090614282565b915050611ab4565b5050565b60028181548110611aec57600080fd5b9060005260206000209060030201600091509050806000015490806001015490806002018054611b1b90613df6565b80601f0160208091040260200160405190810160405280929190818152602001828054611b4790613df6565b8015611b945780601f10611b6957610100808354040283529160200191611b94565b820191906000526020600020905b815481529060010190602001808311611b7757829003601f168201915b5050505050905083565b611ba6612722565b611bb06000612a70565b565b6000600280549050905090565b611bc7612722565b8015611bd657611bd5611aa7565b5b611bde612b34565b50565b600c5481565b60095481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080611c21610c9b565b9050808410611c34576000915050611c60565b80831115611c50578381611c489190613beb565b915050611c60565b8383611c5c9190613beb565b9150505b92915050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1390614316565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d82906143a8565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6007602052816000526040600020602052806000526040600020600091509150508060000154908060010154908060020154908060030154905084565b600080600060058581548110611e2557611e24613b8d565b5b9060005260206000209060070201905060006007600087815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060006002836001015481548110611ea357611ea2613b8d565b5b9060005260206000209060030201905060008360040154905060008460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611f1b91906135d3565b602060405180830381865afa158015611f38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f5c919061419a565b9050846003015442118015611f72575060008114155b1561200d576000611f87866003015442611c16565b90506000811461200b57600060045485600001548660010154896002015460095486611fb39190613cf6565b611fbd9190613cf6565b611fc79190613d67565b611fd19190613cf6565b611fdb9190613d67565b905082670de0b6b3a764000082611ff29190613cf6565b611ffc9190613d67565b846120079190613c1f565b9350505b505b83600301548460010154670de0b6b3a76400008487600001546120309190613cf6565b61203a9190613d67565b6120449190613beb565b61204e9190613c1f565b429650965050505050509250929050565b6060600360008381526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156120be57602002820191906000526020600020905b8154815260200190600101908083116120aa575b50505050509050919050565b60066020528060005260406000206000915090505481565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612110612722565b67403fbf9e8bb284be82111561215b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215290614414565b60405180910390fd5b801561216a57612169611aa7565b5b600a826121779190613d67565b6008819055506008548261218b9190613beb565b600981905550612199612b34565b5050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461222d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612224906144a6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361229c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612293906143a8565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6122e86127a0565b6000600583815481106122fe576122fd613b8d565b5b906000526020600020906007020190506000816002015403612355576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234c90614512565b60405180910390fd5b6000600282600101548154811061236f5761236e613b8d565b5b906000526020600020906003020160000154036123c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b89061457e565b60405180910390fd5b60006007600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905061241e84611121565b612427846127ef565b600061271083600501548561243c9190613cf6565b6124469190613d67565b90506000841115612580576124a23330868660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612c8c909392919063ffffffff16565b60008360050154111561254b57612520600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129e19092919063ffffffff16565b808461252c9190613beb565b82600001600082825461253f9190613c1f565b92505081905550612567565b8382600001600082825461255f9190613c1f565b925050819055505b8260060154426125779190613c1f565b82600201819055505b670de0b6b3a76400008360040154836000015461259d9190613cf6565b6125a79190613d67565b8260010181905550843373ffffffffffffffffffffffffffffffffffffffff167f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e86846040516125f8929190613660565b60405180910390a350505061260b612a67565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006009546008546126459190613c1f565b905090565b6003602052816000526040600020818154811061266657600080fd5b90600052602060002001600091509150505481565b612683612722565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036126f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e990614610565b60405180910390fd5b6126fb81612a70565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b61272a612d15565b73ffffffffffffffffffffffffffffffffffffffff16612748611bed565b73ffffffffffffffffffffffffffffffffffffffff161461279e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127959061467c565b60405180910390fd5b565b6002600154036127e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127dc906146e8565b60405180910390fd5b6002600181905550565b60006005828154811061280557612804613b8d565b5b9060005260206000209060070201905060006007600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600201540361288e578160060154426128859190613c1f565b81600201819055505b60008160010154670de0b6b3a7640000846004015484600001546128b29190613cf6565b6128bc9190613d67565b6128c69190613beb565b9050816002015442106129b55760008111806128e6575060008260030154115b156129b05760008260030154826128fd9190613c1f565b9050600083600301819055508360060154426129199190613c1f565b83600201819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663e4e103dc33836040518363ffffffff1660e01b815260040161297c9291906141c7565b600060405180830381600087803b15801561299657600080fd5b505af11580156129aa573d6000803e3d6000fd5b50505050505b6129db565b60008111156129da57808260030160008282546129d29190613c1f565b925050819055505b5b50505050565b612a628363a9059cbb60e01b8484604051602401612a009291906141c7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612d1d565b505050565b60018081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612b3c612633565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a2309ff86040518163ffffffff1660e01b81526004016020604051808303816000875af1158015612ba9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bcd919061419a565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d5abeb016040518163ffffffff1660e01b81526004016020604051808303816000875af1158015612c3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c5e919061419a565b612c689190613beb565b612c729190613d67565b612c7a6110f8565b612c849190613c1f565b600d81905550565b612d0f846323b872dd60e01b858585604051602401612cad93929190614708565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612d1d565b50505050565b600033905090565b6000612d7f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612de59092919063ffffffff16565b9050600081511480612da1575080806020019051810190612da09190614754565b5b612de0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dd7906147f3565b60405180910390fd5b505050565b6060612df48484600085612dfd565b90509392505050565b606082471015612e42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e3990614885565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612e6b91906148ec565b60006040518083038185875af1925050503d8060008114612ea8576040519150601f19603f3d011682016040523d82523d6000602084013e612ead565b606091505b5091509150612ebe87838387612eca565b92505050949350505050565b60608315612f2c576000835103612f2457612ee485612f3f565b612f23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f1a9061494f565b60405180910390fd5b5b829050612f37565b612f368383612f62565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115612f755781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa9919061496f565b60405180910390fd5b600080fd5b600080fd5b6000819050919050565b612fcf81612fbc565b8114612fda57600080fd5b50565b600081359050612fec81612fc6565b92915050565b60006020828403121561300857613007612fb2565b5b600061301684828501612fdd565b91505092915050565b61302881612fbc565b82525050565b6000602082019050613043600083018461301f565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061308e61308961308484613049565b613069565b613049565b9050919050565b60006130a082613073565b9050919050565b60006130b282613095565b9050919050565b6130c2816130a7565b82525050565b600060e0820190506130dd600083018a6130b9565b6130ea602083018961301f565b6130f7604083018861301f565b613104606083018761301f565b613111608083018661301f565b61311e60a083018561301f565b61312b60c083018461301f565b98975050505050505050565b60008115159050919050565b61314c81613137565b811461315757600080fd5b50565b60008135905061316981613143565b92915050565b600080600080600060a0868803121561318b5761318a612fb2565b5b600061319988828901612fdd565b95505060206131aa88828901612fdd565b94505060406131bb88828901612fdd565b93505060606131cc88828901612fdd565b92505060806131dd8882890161315a565b9150509295509295909350565b60006131f582613049565b9050919050565b613205816131ea565b811461321057600080fd5b50565b600081359050613222816131fc565b92915050565b6000806040838503121561323f5761323e612fb2565b5b600061324d85828601612fdd565b925050602061325e85828601613213565b9150509250929050565b61327181613137565b82525050565b600060208201905061328c6000830184613268565b92915050565b600080604083850312156132a9576132a8612fb2565b5b60006132b785828601612fdd565b92505060206132c885828601612fdd565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f8401126132f7576132f66132d2565b5b8235905067ffffffffffffffff811115613314576133136132d7565b5b6020830191508360018202830111156133305761332f6132dc565b5b9250929050565b6000806000806060858703121561335157613350612fb2565b5b600085013567ffffffffffffffff81111561336f5761336e612fb7565b5b61337b878288016132e1565b9450945050602061338e87828801612fdd565b925050604061339f8782880161315a565b91505092959194509250565b6000806000606084860312156133c4576133c3612fb2565b5b60006133d286828701612fdd565b93505060206133e386828701612fdd565b92505060406133f48682870161315a565b9150509250925092565b6000613409826131ea565b9050919050565b613419816133fe565b811461342457600080fd5b50565b60008135905061343681613410565b92915050565b60008060008060008060c0878903121561345957613458612fb2565b5b600061346789828a01612fdd565b965050602061347889828a01613427565b955050604061348989828a01612fdd565b945050606061349a89828a01612fdd565b93505060806134ab89828a01612fdd565b92505060a06134bc89828a0161315a565b9150509295509295509295565b600081519050919050565b600082825260208201905092915050565b60005b838110156135035780820151818401526020810190506134e8565b60008484015250505050565b6000601f19601f8301169050919050565b600061352b826134c9565b61353581856134d4565b93506135458185602086016134e5565b61354e8161350f565b840191505092915050565b600060608201905061356e600083018661301f565b61357b602083018561301f565b818103604083015261358d8184613520565b9050949350505050565b6000602082840312156135ad576135ac612fb2565b5b60006135bb8482850161315a565b91505092915050565b6135cd816131ea565b82525050565b60006020820190506135e860008301846135c4565b92915050565b60006020828403121561360457613603612fb2565b5b600061361284828501613213565b91505092915050565b6000608082019050613630600083018761301f565b61363d602083018661301f565b61364a604083018561301f565b613657606083018461301f565b95945050505050565b6000604082019050613675600083018561301f565b613682602083018461301f565b9392505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6136be81612fbc565b82525050565b60006136d083836136b5565b60208301905092915050565b6000602082019050919050565b60006136f482613689565b6136fe8185613694565b9350613709836136a5565b8060005b8381101561373a57815161372188826136c4565b975061372c836136dc565b92505060018101905061370d565b5085935050505092915050565b6000602082019050818103600083015261376181846136e9565b905092915050565b600080604083850312156137805761377f612fb2565b5b600061378e85828601612fdd565b925050602061379f8582860161315a565b9150509250929050565b60006137b482613095565b9050919050565b6137c4816137a9565b82525050565b60006020820190506137df60008301846137bb565b92915050565b60006137f082613095565b9050919050565b613800816137e5565b82525050565b600060208201905061381b60008301846137f7565b92915050565b7f5a50726f746f636f6c3a2063616e6e6f74206368616e6765207374617274546960008201527f6d65206166746572206661726d696e672068617320616c72656164792073746160208201527f727465642e000000000000000000000000000000000000000000000000000000604082015250565b60006138a36045836134d4565b91506138ae82613821565b606082019050919050565b600060208201905081810360008301526138d281613896565b9050919050565b7f5a50726f746f636f6c3a2063616e6e6f74206368616e6765207374617274546960008201527f6d65206166746572206120706f6f6c20686173206265656e207265676973746560208201527f7265642e00000000000000000000000000000000000000000000000000000000604082015250565b600061395b6044836134d4565b9150613966826138d9565b606082019050919050565b6000602082019050818103600083015261398a8161394e565b9050919050565b7f5a50726f746f636f6c3a2063616e6e6f74206368616e6765207374617274546960008201527f6d652077697468206120706173742074696d657374616d702e00000000000000602082015250565b60006139ed6039836134d4565b91506139f882613991565b604082019050919050565b60006020820190508181036000830152613a1c816139e0565b9050919050565b7f5a50726f746f636f6c3a20706f6f6c20646f6573206e6f742065786973740000600082015250565b6000613a59601e836134d4565b9150613a6482613a23565b602082019050919050565b60006020820190508181036000830152613a8881613a4c565b9050919050565b7f5a50726f746f636f6c3a20746f6f2068696768206861727665737420696e746560008201527f7276616c00000000000000000000000000000000000000000000000000000000602082015250565b6000613aeb6024836134d4565b9150613af682613a8f565b604082019050919050565b60006020820190508181036000830152613b1a81613ade565b9050919050565b7f5a50726f746f636f6c3a20746f6f2068696768206465706f7369742066656500600082015250565b6000613b57601f836134d4565b9150613b6282613b21565b602082019050919050565b60006020820190508181036000830152613b8681613b4a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613bf682612fbc565b9150613c0183612fbc565b9250828203905081811115613c1957613c18613bbc565b5b92915050565b6000613c2a82612fbc565b9150613c3583612fbc565b9250828201905080821115613c4d57613c4c613bbc565b5b92915050565b6000606082019050613c68600083018661301f565b613c75602083018561301f565b613c82604083018461301f565b949350505050565b7f5a50726f746f636f6c3a20626164207769746864726177616c00000000000000600082015250565b6000613cc06019836134d4565b9150613ccb82613c8a565b602082019050919050565b60006020820190508181036000830152613cef81613cb3565b9050919050565b6000613d0182612fbc565b9150613d0c83612fbc565b9250828202613d1a81612fbc565b91508282048414831517613d3157613d30613bbc565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613d7282612fbc565b9150613d7d83612fbc565b925082613d8d57613d8c613d38565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613e0e57607f821691505b602082108103613e2157613e20613dc7565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613e897fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613e4c565b613e938683613e4c565b95508019841693508086168417925050509392505050565b6000613ec6613ec1613ebc84612fbc565b613069565b612fbc565b9050919050565b6000819050919050565b613ee083613eab565b613ef4613eec82613ecd565b848454613e59565b825550505050565b600090565b613f09613efc565b613f14818484613ed7565b505050565b5b81811015613f3857613f2d600082613f01565b600181019050613f1a565b5050565b601f821115613f7d57613f4e81613e27565b613f5784613e3c565b81016020851015613f66578190505b613f7a613f7285613e3c565b830182613f19565b50505b505050565b600082821c905092915050565b6000613fa060001984600802613f82565b1980831691505092915050565b6000613fb98383613f8f565b9150826002028217905092915050565b613fd2826134c9565b67ffffffffffffffff811115613feb57613fea613d98565b5b613ff58254613df6565b614000828285613f3c565b600060209050601f8311600181146140335760008415614021578287015190505b61402b8582613fad565b865550614093565b601f19841661404186613e27565b60005b8281101561406957848901518255600182019150602085019450602081019050614044565b868310156140865784890151614082601f891682613f8f565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b82818337600083830152505050565b60006140c1838561409b565b93506140ce8385846140a6565b82840190509392505050565b60006140e78284866140b5565b91508190509392505050565b7f5a50726f746f636f6c3a2063617465676f727920646f6573206e6f742065786960008201527f7374000000000000000000000000000000000000000000000000000000000000602082015250565b600061414f6022836134d4565b915061415a826140f3565b604082019050919050565b6000602082019050818103600083015261417e81614142565b9050919050565b60008151905061419481612fc6565b92915050565b6000602082840312156141b0576141af612fb2565b5b60006141be84828501614185565b91505092915050565b60006040820190506141dc60008301856135c4565b6141e9602083018461301f565b9392505050565b7f5a50726f746f636f6c3a20746f6b656e20616c7265616479207265676973746560008201527f7265640000000000000000000000000000000000000000000000000000000000602082015250565b600061424c6023836134d4565b9150614257826141f0565b604082019050919050565b6000602082019050818103600083015261427b8161423f565b9050919050565b600061428d82612fbc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036142bf576142be613bbc565b5b600182019050919050565b7f5a50726f746f636f6c3a2063616c6c6572206973206e6f742074686520646576600082015250565b60006143006020836134d4565b915061430b826142ca565b602082019050919050565b6000602082019050818103600083015261432f816142f3565b9050919050565b7f5a50726f746f636f6c3a206e756c6c2061646472657373206e6f74207065726d60008201527f6974746564000000000000000000000000000000000000000000000000000000602082015250565b60006143926025836134d4565b915061439d82614336565b604082019050919050565b600060208201905081810360008301526143c181614385565b9050919050565b7f5a50726f746f636f6c3a20746f6f2068696768205a5020726577617264000000600082015250565b60006143fe601d836134d4565b9150614409826143c8565b602082019050919050565b6000602082019050818103600083015261442d816143f1565b9050919050565b7f5a50726f746f636f6c3a2063616c6c6572206973206e6f74207468652066656560008201527f20636f6c6c6563746f7200000000000000000000000000000000000000000000602082015250565b6000614490602a836134d4565b915061449b82614434565b604082019050919050565b600060208201905081810360008301526144bf81614483565b9050919050565b7f5a50726f746f636f6c3a20706f6f6c2069732064697361626c65640000000000600082015250565b60006144fc601b836134d4565b9150614507826144c6565b602082019050919050565b6000602082019050818103600083015261452b816144ef565b9050919050565b7f5a50726f746f636f6c3a2063617465676f72792069732064697361626c656400600082015250565b6000614568601f836134d4565b915061457382614532565b602082019050919050565b600060208201905081810360008301526145978161455b565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006145fa6026836134d4565b91506146058261459e565b604082019050919050565b60006020820190508181036000830152614629816145ed565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006146666020836134d4565b915061467182614630565b602082019050919050565b6000602082019050818103600083015261469581614659565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006146d2601f836134d4565b91506146dd8261469c565b602082019050919050565b60006020820190508181036000830152614701816146c5565b9050919050565b600060608201905061471d60008301866135c4565b61472a60208301856135c4565b614737604083018461301f565b949350505050565b60008151905061474e81613143565b92915050565b60006020828403121561476a57614769612fb2565b5b60006147788482850161473f565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006147dd602a836134d4565b91506147e882614781565b604082019050919050565b6000602082019050818103600083015261480c816147d0565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061486f6026836134d4565b915061487a82614813565b604082019050919050565b6000602082019050818103600083015261489e81614862565b9050919050565b600081519050919050565b600081905092915050565b60006148c6826148a5565b6148d081856148b0565b93506148e08185602086016134e5565b80840191505092915050565b60006148f882846148bb565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000614939601d836134d4565b915061494482614903565b602082019050919050565b600060208201905081810360008301526149688161492c565b9050919050565b600060208201905081810360008301526149898184613520565b90509291505056fea2646970667358221220067499e88a8652d446a35826228464e7b1be04f11a0b81139a52645e818487e364736f6c634300081300330000000000000000000000002147a89fb4608752807216d5070471c09a0dce32000000000000000000000000e2c534e470c20761dfb51713733395b01b73608d0000000000000000000000009591d796c59f0ddde14609d303b9d788a9344b62000000000000000000000000d04efc6472b62917e028e78c8f736a1b9f1d09e2000000000000000000000000000000000000000000000000100fefe7a2eca12f0000000000000000000000000000000000000000000000000000000065e9e480
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102695760003560e01c8063715018a611610151578063ab806935116100c3578063e2bbb15811610087578063e2bbb15814610720578063e8d663d31461073c578063eb652e311461075a578063ec7dccb414610778578063f2fde38b146107a8578063fda49eb4146107c457610269565b8063ab8069351461066a578063bbab0f641461069a578063c415b95c146106ca578063cd905073146106e8578063d2c35ce81461070457610269565b80638da5cb5b116101155780638da5cb5b1461057e5780638dbb1e3a1461059c57806391cca3db146105cc578063934c1938146105ea57806393f1a40b1461060657806398969e821461063957610269565b8063715018a6146104fe57806373661e691461050857806375c7fbc21461052657806378e97925146105425780638bdfb9b51461056057610269565b8063369f0be7116101ea57806351453f9d116101ae57806351453f9d1461045057806351eb05a61461046e5780635312ea8e1461048a5780635b647eb0146104a6578063630b5ba1146104c257806366b0d80d146104cc57610269565b8063369f0be7146103c057806337caa6e7146103de578063441a3e70146103fc57806344ea8a37146104185780634633ec521461043457610269565b80632716ae66116102315780632716ae661461031a578063277c95f6146103385780632c7192d8146103565780632e6c998d146103725780633197cbb6146103a257610269565b806306bcf02f1461026e5780630c7d67631461028a5780630cbbc7de146102a85780630d15e044146102c65780631526fe27146102e4575b600080fd5b61028860048036038101906102839190612ff2565b6107e2565b005b6102926108c2565b60405161029f919061302e565b60405180910390f35b6102b06108c8565b6040516102bd919061302e565b60405180910390f35b6102ce6108ce565b6040516102db919061302e565b60405180910390f35b6102fe60048036038101906102f99190612ff2565b6108d5565b60405161031197969594939291906130c8565b60405180910390f35b610322610947565b60405161032f919061302e565b60405180910390f35b610340610954565b60405161034d919061302e565b60405180910390f35b610370600480360381019061036b919061316f565b61095a565b005b61038c60048036038101906103879190613228565b610c3a565b6040516103999190613277565b60405180910390f35b6103aa610c9b565b6040516103b7919061302e565b60405180910390f35b6103c8610cb2565b6040516103d5919061302e565b60405180910390f35b6103e6610cbe565b6040516103f3919061302e565b60405180910390f35b61041660048036038101906104119190613292565b610cc4565b005b610432600480360381019061042d9190613337565b610e9f565b005b61044e600480360381019061044991906133ab565b610fee565b005b6104586110f8565b604051610465919061302e565b60405180910390f35b61048860048036038101906104839190612ff2565b611121565b005b6104a4600480360381019061049f9190612ff2565b611590565b005b6104c060048036038101906104bb919061343c565b6116ed565b005b6104ca611aa7565b005b6104e660048036038101906104e19190612ff2565b611adc565b6040516104f593929190613559565b60405180910390f35b610506611b9e565b005b610510611bb2565b60405161051d919061302e565b60405180910390f35b610540600480360381019061053b9190613597565b611bbf565b005b61054a611be1565b604051610557919061302e565b60405180910390f35b610568611be7565b604051610575919061302e565b60405180910390f35b610586611bed565b60405161059391906135d3565b60405180910390f35b6105b660048036038101906105b19190613292565b611c16565b6040516105c3919061302e565b60405180910390f35b6105d4611c66565b6040516105e191906135d3565b60405180910390f35b61060460048036038101906105ff91906135ee565b611c8c565b005b610620600480360381019061061b9190613228565b611dcf565b604051610630949392919061361b565b60405180910390f35b610653600480360381019061064e9190613228565b611e0c565b604051610661929190613660565b60405180910390f35b610684600480360381019061067f9190612ff2565b61205f565b6040516106919190613747565b60405180910390f35b6106b460048036038101906106af91906135ee565b6120ca565b6040516106c1919061302e565b60405180910390f35b6106d26120e2565b6040516106df91906135d3565b60405180910390f35b61070260048036038101906106fd9190613769565b612108565b005b61071e600480360381019061071991906135ee565b61219d565b005b61073a60048036038101906107359190613292565b6122e0565b005b61074461260f565b60405161075191906137ca565b60405180910390f35b610762612633565b60405161076f919061302e565b60405180910390f35b610792600480360381019061078d9190613292565b61264a565b60405161079f919061302e565b60405180910390f35b6107c260048036038101906107bd91906135ee565b61267b565b005b6107cc6126fe565b6040516107d99190613806565b60405180910390f35b6107ea612722565b600c54421061082e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610825906138b9565b60405180910390fd5b600060058054905014610876576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086d90613971565b60405180910390fd5b4281116108b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108af90613a03565b60405180910390fd5b80600c8190555050565b600d5481565b60085481565b6201518081565b600581815481106108e557600080fd5b90600052602060002090600702016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040154908060050154908060060154905087565b6000600580549050905090565b60045481565b610962612722565b60058054905085106109a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a090613a6f565b60405180910390fd5b620151808211156109ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e690613b01565b60405180910390fd5b610190831115610a34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2b90613b6d565b60405180910390fd5b8015610a4357610a42611aa7565b5b600060058681548110610a5957610a58613b8d565b5b90600052602060002090600702016001015490508460058781548110610a8257610a81613b8d565b5b90600052602060002090600702016002015460028381548110610aa857610aa7613b8d565b5b906000526020600020906003020160010154610ac49190613beb565b610ace9190613c1f565b60028281548110610ae257610ae1613b8d565b5b9060005260206000209060030201600101819055508460058781548110610b0c57610b0b613b8d565b5b9060005260206000209060070201600201819055508360058781548110610b3657610b35613b8d565b5b9060005260206000209060070201600501819055508260058781548110610b6057610b5f613b8d565b5b90600052602060002090600702016006018190555060058681548110610b8957610b88613b8d565b5b90600052602060002090600702016001015460058781548110610baf57610bae613b8d565b5b906000526020600020906007020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fd516bf05712248cfe5d9bb7e6016f2a8ae61c8cbda723aac3059cd9cbc173fde878787604051610c2a93929190613c53565b60405180910390a3505050505050565b60006007600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154421015905092915050565b6000600d54600c54610cad9190613c1f565b905090565b67403fbf9e8bb284be81565b61019081565b610ccc6127a0565b600060058381548110610ce257610ce1613b8d565b5b9060005260206000209060070201905060006007600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508281600001541015610d8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8490613cd6565b60405180910390fd5b610d9684611121565b610d9f846127ef565b82816000016000828254610db39190613beb565b92505081905550670de0b6b3a764000082600401548260000154610dd79190613cf6565b610de19190613d67565b81600101819055506000831115610e4257610e4133848460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129e19092919063ffffffff16565b5b833373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56885604051610e89919061302e565b60405180910390a35050610e9b612a67565b5050565b610ea7612722565b8015610eb657610eb5611aa7565b5b8160046000828254610ec89190613c1f565b92505081905550600260405180606001604052808481526020016000815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000155602082015181600101556040820151816002019081610f839190613fc9565b5050508383604051610f969291906140da565b60405180910390207f2693e3e53273a2771d7b42da08be41fadb0ab4b1043fb6b0d2c67883e708a48b6001600280549050610fd19190613beb565b84604051610fe0929190613660565b60405180910390a250505050565b610ff6612722565b600280549050831061103d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103490614165565b60405180910390fd5b801561104c5761104b611aa7565b5b816002848154811061106157611060613b8d565b5b9060005260206000209060030201600001546004546110809190613beb565b61108a9190613c1f565b60048190555081600284815481106110a5576110a4613b8d565b5b9060005260206000209060030201600001819055507f4db1ff07b777d5d3cb772fbe3aac7d1db9eee1c30cb9edeb557b329989e5b7e783836040516110eb929190613660565b60405180910390a1505050565b6000600c5442111561111957600c54426111129190613beb565b905061111e565b600090505b90565b60006005828154811061113757611136613b8d565b5b9060005260206000209060070201905080600301544211158061115e575060008160020154145b8061119257506000600282600101548154811061117e5761117d613b8d565b5b906000526020600020906003020160000154145b1561119d575061158d565b60006111ad826003015442611c16565b9050600081036111c757428260030181905550505061158d565b60008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161122691906135d3565b602060405180830381865afa158015611243573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611267919061419a565b90506000600284600101548154811061128357611282613b8d565b5b906000526020600020906003020190506000600454826000015483600101548760020154600954886112b59190613cf6565b6112bf9190613cf6565b6112c99190613d67565b6112d39190613cf6565b6112dd9190613d67565b90506000600454836000015484600101548860020154600854896113019190613cf6565b61130b9190613cf6565b6113159190613d67565b61131f9190613cf6565b6113299190613d67565b9050428660030181905550600084036113f0577f0000000000000000000000002147a89fb4608752807216d5070471c09a0dce3273ffffffffffffffffffffffffffffffffffffffff166340c10f19600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b81526004016113b99291906141c7565b600060405180830381600087803b1580156113d357600080fd5b505af11580156113e7573d6000803e3d6000fd5b505050506114d7565b83670de0b6b3a7640000836114059190613cf6565b61140f9190613d67565b8660040160008282546114229190613c1f565b925050819055507f0000000000000000000000002147a89fb4608752807216d5070471c09a0dce3273ffffffffffffffffffffffffffffffffffffffff166340c10f197f000000000000000000000000e2c534e470c20761dfb51713733395b01b73608d846040518363ffffffff1660e01b81526004016114a49291906141c7565b600060405180830381600087803b1580156114be57600080fd5b505af11580156114d2573d6000803e3d6000fd5b505050505b7f0000000000000000000000002147a89fb4608752807216d5070471c09a0dce3273ffffffffffffffffffffffffffffffffffffffff166340c10f19600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b81526004016115549291906141c7565b600060405180830381600087803b15801561156e57600080fd5b505af1158015611582573d6000803e3d6000fd5b505050505050505050505b50565b6115986127a0565b6000600582815481106115ae576115ad613b8d565b5b9060005260206000209060070201905060006007600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506116653382600001548460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129e19092919063ffffffff16565b823373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059583600001546040516116b0919061302e565b60405180910390a36000816000018190555060008160010181905550600081600301819055506000816002018190555050506116ea612a67565b50565b6116f5612722565b600280549050861061173c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173390614165565b60405180910390fd5b62015180821115611782576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177990613b01565b60405180910390fd5b6101908311156117c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117be90613b6d565b60405180910390fd5b60008590506000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541461184e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184590614262565b60405180910390fd5b811561185d5761185c611aa7565b5b6000600c54421161187057600c54611872565b425b9050856002898154811061188957611888613b8d565b5b906000526020600020906003020160010160008282546118a99190613c1f565b9250508190555060016005805490506118c29190613c1f565b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060056040518060e001604052808973ffffffffffffffffffffffffffffffffffffffff1681526020018a81526020018881526020018381526020016000815260200187815260200186815250908060018154018082558091505060019003906000526020600020906007020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c082015181600601555050600360008981526020019081526020016000206001600580549050611a249190613beb565b9080600181540180825580915050600190039060005260206000200160009091909190915055878273ffffffffffffffffffffffffffffffffffffffff167f075a2211ef19062dfbd74d88bb38de002cee015815ad5b453fb3c903947b8151888888604051611a9593929190613c53565b60405180910390a35050505050505050565b6000600580549050905060005b81811015611ad857611ac581611121565b8080611ad090614282565b915050611ab4565b5050565b60028181548110611aec57600080fd5b9060005260206000209060030201600091509050806000015490806001015490806002018054611b1b90613df6565b80601f0160208091040260200160405190810160405280929190818152602001828054611b4790613df6565b8015611b945780601f10611b6957610100808354040283529160200191611b94565b820191906000526020600020905b815481529060010190602001808311611b7757829003601f168201915b5050505050905083565b611ba6612722565b611bb06000612a70565b565b6000600280549050905090565b611bc7612722565b8015611bd657611bd5611aa7565b5b611bde612b34565b50565b600c5481565b60095481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080611c21610c9b565b9050808410611c34576000915050611c60565b80831115611c50578381611c489190613beb565b915050611c60565b8383611c5c9190613beb565b9150505b92915050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1390614316565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d82906143a8565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6007602052816000526040600020602052806000526040600020600091509150508060000154908060010154908060020154908060030154905084565b600080600060058581548110611e2557611e24613b8d565b5b9060005260206000209060070201905060006007600087815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060006002836001015481548110611ea357611ea2613b8d565b5b9060005260206000209060030201905060008360040154905060008460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611f1b91906135d3565b602060405180830381865afa158015611f38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f5c919061419a565b9050846003015442118015611f72575060008114155b1561200d576000611f87866003015442611c16565b90506000811461200b57600060045485600001548660010154896002015460095486611fb39190613cf6565b611fbd9190613cf6565b611fc79190613d67565b611fd19190613cf6565b611fdb9190613d67565b905082670de0b6b3a764000082611ff29190613cf6565b611ffc9190613d67565b846120079190613c1f565b9350505b505b83600301548460010154670de0b6b3a76400008487600001546120309190613cf6565b61203a9190613d67565b6120449190613beb565b61204e9190613c1f565b429650965050505050509250929050565b6060600360008381526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156120be57602002820191906000526020600020905b8154815260200190600101908083116120aa575b50505050509050919050565b60066020528060005260406000206000915090505481565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612110612722565b67403fbf9e8bb284be82111561215b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215290614414565b60405180910390fd5b801561216a57612169611aa7565b5b600a826121779190613d67565b6008819055506008548261218b9190613beb565b600981905550612199612b34565b5050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461222d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612224906144a6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361229c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612293906143a8565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6122e86127a0565b6000600583815481106122fe576122fd613b8d565b5b906000526020600020906007020190506000816002015403612355576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234c90614512565b60405180910390fd5b6000600282600101548154811061236f5761236e613b8d565b5b906000526020600020906003020160000154036123c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b89061457e565b60405180910390fd5b60006007600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905061241e84611121565b612427846127ef565b600061271083600501548561243c9190613cf6565b6124469190613d67565b90506000841115612580576124a23330868660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612c8c909392919063ffffffff16565b60008360050154111561254b57612520600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129e19092919063ffffffff16565b808461252c9190613beb565b82600001600082825461253f9190613c1f565b92505081905550612567565b8382600001600082825461255f9190613c1f565b925050819055505b8260060154426125779190613c1f565b82600201819055505b670de0b6b3a76400008360040154836000015461259d9190613cf6565b6125a79190613d67565b8260010181905550843373ffffffffffffffffffffffffffffffffffffffff167f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e86846040516125f8929190613660565b60405180910390a350505061260b612a67565b5050565b7f0000000000000000000000002147a89fb4608752807216d5070471c09a0dce3281565b60006009546008546126459190613c1f565b905090565b6003602052816000526040600020818154811061266657600080fd5b90600052602060002001600091509150505481565b612683612722565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036126f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e990614610565b60405180910390fd5b6126fb81612a70565b50565b7f000000000000000000000000e2c534e470c20761dfb51713733395b01b73608d81565b61272a612d15565b73ffffffffffffffffffffffffffffffffffffffff16612748611bed565b73ffffffffffffffffffffffffffffffffffffffff161461279e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127959061467c565b60405180910390fd5b565b6002600154036127e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127dc906146e8565b60405180910390fd5b6002600181905550565b60006005828154811061280557612804613b8d565b5b9060005260206000209060070201905060006007600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600201540361288e578160060154426128859190613c1f565b81600201819055505b60008160010154670de0b6b3a7640000846004015484600001546128b29190613cf6565b6128bc9190613d67565b6128c69190613beb565b9050816002015442106129b55760008111806128e6575060008260030154115b156129b05760008260030154826128fd9190613c1f565b9050600083600301819055508360060154426129199190613c1f565b83600201819055507f000000000000000000000000e2c534e470c20761dfb51713733395b01b73608d73ffffffffffffffffffffffffffffffffffffffff1663e4e103dc33836040518363ffffffff1660e01b815260040161297c9291906141c7565b600060405180830381600087803b15801561299657600080fd5b505af11580156129aa573d6000803e3d6000fd5b50505050505b6129db565b60008111156129da57808260030160008282546129d29190613c1f565b925050819055505b5b50505050565b612a628363a9059cbb60e01b8484604051602401612a009291906141c7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612d1d565b505050565b60018081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612b3c612633565b7f0000000000000000000000002147a89fb4608752807216d5070471c09a0dce3273ffffffffffffffffffffffffffffffffffffffff1663a2309ff86040518163ffffffff1660e01b81526004016020604051808303816000875af1158015612ba9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bcd919061419a565b7f0000000000000000000000002147a89fb4608752807216d5070471c09a0dce3273ffffffffffffffffffffffffffffffffffffffff1663d5abeb016040518163ffffffff1660e01b81526004016020604051808303816000875af1158015612c3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c5e919061419a565b612c689190613beb565b612c729190613d67565b612c7a6110f8565b612c849190613c1f565b600d81905550565b612d0f846323b872dd60e01b858585604051602401612cad93929190614708565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612d1d565b50505050565b600033905090565b6000612d7f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612de59092919063ffffffff16565b9050600081511480612da1575080806020019051810190612da09190614754565b5b612de0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dd7906147f3565b60405180910390fd5b505050565b6060612df48484600085612dfd565b90509392505050565b606082471015612e42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e3990614885565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612e6b91906148ec565b60006040518083038185875af1925050503d8060008114612ea8576040519150601f19603f3d011682016040523d82523d6000602084013e612ead565b606091505b5091509150612ebe87838387612eca565b92505050949350505050565b60608315612f2c576000835103612f2457612ee485612f3f565b612f23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f1a9061494f565b60405180910390fd5b5b829050612f37565b612f368383612f62565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115612f755781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa9919061496f565b60405180910390fd5b600080fd5b600080fd5b6000819050919050565b612fcf81612fbc565b8114612fda57600080fd5b50565b600081359050612fec81612fc6565b92915050565b60006020828403121561300857613007612fb2565b5b600061301684828501612fdd565b91505092915050565b61302881612fbc565b82525050565b6000602082019050613043600083018461301f565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061308e61308961308484613049565b613069565b613049565b9050919050565b60006130a082613073565b9050919050565b60006130b282613095565b9050919050565b6130c2816130a7565b82525050565b600060e0820190506130dd600083018a6130b9565b6130ea602083018961301f565b6130f7604083018861301f565b613104606083018761301f565b613111608083018661301f565b61311e60a083018561301f565b61312b60c083018461301f565b98975050505050505050565b60008115159050919050565b61314c81613137565b811461315757600080fd5b50565b60008135905061316981613143565b92915050565b600080600080600060a0868803121561318b5761318a612fb2565b5b600061319988828901612fdd565b95505060206131aa88828901612fdd565b94505060406131bb88828901612fdd565b93505060606131cc88828901612fdd565b92505060806131dd8882890161315a565b9150509295509295909350565b60006131f582613049565b9050919050565b613205816131ea565b811461321057600080fd5b50565b600081359050613222816131fc565b92915050565b6000806040838503121561323f5761323e612fb2565b5b600061324d85828601612fdd565b925050602061325e85828601613213565b9150509250929050565b61327181613137565b82525050565b600060208201905061328c6000830184613268565b92915050565b600080604083850312156132a9576132a8612fb2565b5b60006132b785828601612fdd565b92505060206132c885828601612fdd565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f8401126132f7576132f66132d2565b5b8235905067ffffffffffffffff811115613314576133136132d7565b5b6020830191508360018202830111156133305761332f6132dc565b5b9250929050565b6000806000806060858703121561335157613350612fb2565b5b600085013567ffffffffffffffff81111561336f5761336e612fb7565b5b61337b878288016132e1565b9450945050602061338e87828801612fdd565b925050604061339f8782880161315a565b91505092959194509250565b6000806000606084860312156133c4576133c3612fb2565b5b60006133d286828701612fdd565b93505060206133e386828701612fdd565b92505060406133f48682870161315a565b9150509250925092565b6000613409826131ea565b9050919050565b613419816133fe565b811461342457600080fd5b50565b60008135905061343681613410565b92915050565b60008060008060008060c0878903121561345957613458612fb2565b5b600061346789828a01612fdd565b965050602061347889828a01613427565b955050604061348989828a01612fdd565b945050606061349a89828a01612fdd565b93505060806134ab89828a01612fdd565b92505060a06134bc89828a0161315a565b9150509295509295509295565b600081519050919050565b600082825260208201905092915050565b60005b838110156135035780820151818401526020810190506134e8565b60008484015250505050565b6000601f19601f8301169050919050565b600061352b826134c9565b61353581856134d4565b93506135458185602086016134e5565b61354e8161350f565b840191505092915050565b600060608201905061356e600083018661301f565b61357b602083018561301f565b818103604083015261358d8184613520565b9050949350505050565b6000602082840312156135ad576135ac612fb2565b5b60006135bb8482850161315a565b91505092915050565b6135cd816131ea565b82525050565b60006020820190506135e860008301846135c4565b92915050565b60006020828403121561360457613603612fb2565b5b600061361284828501613213565b91505092915050565b6000608082019050613630600083018761301f565b61363d602083018661301f565b61364a604083018561301f565b613657606083018461301f565b95945050505050565b6000604082019050613675600083018561301f565b613682602083018461301f565b9392505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6136be81612fbc565b82525050565b60006136d083836136b5565b60208301905092915050565b6000602082019050919050565b60006136f482613689565b6136fe8185613694565b9350613709836136a5565b8060005b8381101561373a57815161372188826136c4565b975061372c836136dc565b92505060018101905061370d565b5085935050505092915050565b6000602082019050818103600083015261376181846136e9565b905092915050565b600080604083850312156137805761377f612fb2565b5b600061378e85828601612fdd565b925050602061379f8582860161315a565b9150509250929050565b60006137b482613095565b9050919050565b6137c4816137a9565b82525050565b60006020820190506137df60008301846137bb565b92915050565b60006137f082613095565b9050919050565b613800816137e5565b82525050565b600060208201905061381b60008301846137f7565b92915050565b7f5a50726f746f636f6c3a2063616e6e6f74206368616e6765207374617274546960008201527f6d65206166746572206661726d696e672068617320616c72656164792073746160208201527f727465642e000000000000000000000000000000000000000000000000000000604082015250565b60006138a36045836134d4565b91506138ae82613821565b606082019050919050565b600060208201905081810360008301526138d281613896565b9050919050565b7f5a50726f746f636f6c3a2063616e6e6f74206368616e6765207374617274546960008201527f6d65206166746572206120706f6f6c20686173206265656e207265676973746560208201527f7265642e00000000000000000000000000000000000000000000000000000000604082015250565b600061395b6044836134d4565b9150613966826138d9565b606082019050919050565b6000602082019050818103600083015261398a8161394e565b9050919050565b7f5a50726f746f636f6c3a2063616e6e6f74206368616e6765207374617274546960008201527f6d652077697468206120706173742074696d657374616d702e00000000000000602082015250565b60006139ed6039836134d4565b91506139f882613991565b604082019050919050565b60006020820190508181036000830152613a1c816139e0565b9050919050565b7f5a50726f746f636f6c3a20706f6f6c20646f6573206e6f742065786973740000600082015250565b6000613a59601e836134d4565b9150613a6482613a23565b602082019050919050565b60006020820190508181036000830152613a8881613a4c565b9050919050565b7f5a50726f746f636f6c3a20746f6f2068696768206861727665737420696e746560008201527f7276616c00000000000000000000000000000000000000000000000000000000602082015250565b6000613aeb6024836134d4565b9150613af682613a8f565b604082019050919050565b60006020820190508181036000830152613b1a81613ade565b9050919050565b7f5a50726f746f636f6c3a20746f6f2068696768206465706f7369742066656500600082015250565b6000613b57601f836134d4565b9150613b6282613b21565b602082019050919050565b60006020820190508181036000830152613b8681613b4a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613bf682612fbc565b9150613c0183612fbc565b9250828203905081811115613c1957613c18613bbc565b5b92915050565b6000613c2a82612fbc565b9150613c3583612fbc565b9250828201905080821115613c4d57613c4c613bbc565b5b92915050565b6000606082019050613c68600083018661301f565b613c75602083018561301f565b613c82604083018461301f565b949350505050565b7f5a50726f746f636f6c3a20626164207769746864726177616c00000000000000600082015250565b6000613cc06019836134d4565b9150613ccb82613c8a565b602082019050919050565b60006020820190508181036000830152613cef81613cb3565b9050919050565b6000613d0182612fbc565b9150613d0c83612fbc565b9250828202613d1a81612fbc565b91508282048414831517613d3157613d30613bbc565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613d7282612fbc565b9150613d7d83612fbc565b925082613d8d57613d8c613d38565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613e0e57607f821691505b602082108103613e2157613e20613dc7565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613e897fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613e4c565b613e938683613e4c565b95508019841693508086168417925050509392505050565b6000613ec6613ec1613ebc84612fbc565b613069565b612fbc565b9050919050565b6000819050919050565b613ee083613eab565b613ef4613eec82613ecd565b848454613e59565b825550505050565b600090565b613f09613efc565b613f14818484613ed7565b505050565b5b81811015613f3857613f2d600082613f01565b600181019050613f1a565b5050565b601f821115613f7d57613f4e81613e27565b613f5784613e3c565b81016020851015613f66578190505b613f7a613f7285613e3c565b830182613f19565b50505b505050565b600082821c905092915050565b6000613fa060001984600802613f82565b1980831691505092915050565b6000613fb98383613f8f565b9150826002028217905092915050565b613fd2826134c9565b67ffffffffffffffff811115613feb57613fea613d98565b5b613ff58254613df6565b614000828285613f3c565b600060209050601f8311600181146140335760008415614021578287015190505b61402b8582613fad565b865550614093565b601f19841661404186613e27565b60005b8281101561406957848901518255600182019150602085019450602081019050614044565b868310156140865784890151614082601f891682613f8f565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b82818337600083830152505050565b60006140c1838561409b565b93506140ce8385846140a6565b82840190509392505050565b60006140e78284866140b5565b91508190509392505050565b7f5a50726f746f636f6c3a2063617465676f727920646f6573206e6f742065786960008201527f7374000000000000000000000000000000000000000000000000000000000000602082015250565b600061414f6022836134d4565b915061415a826140f3565b604082019050919050565b6000602082019050818103600083015261417e81614142565b9050919050565b60008151905061419481612fc6565b92915050565b6000602082840312156141b0576141af612fb2565b5b60006141be84828501614185565b91505092915050565b60006040820190506141dc60008301856135c4565b6141e9602083018461301f565b9392505050565b7f5a50726f746f636f6c3a20746f6b656e20616c7265616479207265676973746560008201527f7265640000000000000000000000000000000000000000000000000000000000602082015250565b600061424c6023836134d4565b9150614257826141f0565b604082019050919050565b6000602082019050818103600083015261427b8161423f565b9050919050565b600061428d82612fbc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036142bf576142be613bbc565b5b600182019050919050565b7f5a50726f746f636f6c3a2063616c6c6572206973206e6f742074686520646576600082015250565b60006143006020836134d4565b915061430b826142ca565b602082019050919050565b6000602082019050818103600083015261432f816142f3565b9050919050565b7f5a50726f746f636f6c3a206e756c6c2061646472657373206e6f74207065726d60008201527f6974746564000000000000000000000000000000000000000000000000000000602082015250565b60006143926025836134d4565b915061439d82614336565b604082019050919050565b600060208201905081810360008301526143c181614385565b9050919050565b7f5a50726f746f636f6c3a20746f6f2068696768205a5020726577617264000000600082015250565b60006143fe601d836134d4565b9150614409826143c8565b602082019050919050565b6000602082019050818103600083015261442d816143f1565b9050919050565b7f5a50726f746f636f6c3a2063616c6c6572206973206e6f74207468652066656560008201527f20636f6c6c6563746f7200000000000000000000000000000000000000000000602082015250565b6000614490602a836134d4565b915061449b82614434565b604082019050919050565b600060208201905081810360008301526144bf81614483565b9050919050565b7f5a50726f746f636f6c3a20706f6f6c2069732064697361626c65640000000000600082015250565b60006144fc601b836134d4565b9150614507826144c6565b602082019050919050565b6000602082019050818103600083015261452b816144ef565b9050919050565b7f5a50726f746f636f6c3a2063617465676f72792069732064697361626c656400600082015250565b6000614568601f836134d4565b915061457382614532565b602082019050919050565b600060208201905081810360008301526145978161455b565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006145fa6026836134d4565b91506146058261459e565b604082019050919050565b60006020820190508181036000830152614629816145ed565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006146666020836134d4565b915061467182614630565b602082019050919050565b6000602082019050818103600083015261469581614659565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006146d2601f836134d4565b91506146dd8261469c565b602082019050919050565b60006020820190508181036000830152614701816146c5565b9050919050565b600060608201905061471d60008301866135c4565b61472a60208301856135c4565b614737604083018461301f565b949350505050565b60008151905061474e81613143565b92915050565b60006020828403121561476a57614769612fb2565b5b60006147788482850161473f565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006147dd602a836134d4565b91506147e882614781565b604082019050919050565b6000602082019050818103600083015261480c816147d0565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061486f6026836134d4565b915061487a82614813565b604082019050919050565b6000602082019050818103600083015261489e81614862565b9050919050565b600081519050919050565b600081905092915050565b60006148c6826148a5565b6148d081856148b0565b93506148e08185602086016134e5565b80840191505092915050565b60006148f882846148bb565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000614939601d836134d4565b915061494482614903565b602082019050919050565b600060208201905081810360008301526149688161492c565b9050919050565b600060208201905081810360008301526149898184613520565b90509291505056fea2646970667358221220067499e88a8652d446a35826228464e7b1be04f11a0b81139a52645e818487e364736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002147a89fb4608752807216d5070471c09a0dce32000000000000000000000000e2c534e470c20761dfb51713733395b01b73608d0000000000000000000000009591d796c59f0ddde14609d303b9d788a9344b62000000000000000000000000d04efc6472b62917e028e78c8f736a1b9f1d09e2000000000000000000000000000000000000000000000000100fefe7a2eca12f0000000000000000000000000000000000000000000000000000000065e9e480
-----Decoded View---------------
Arg [0] : _zp (address): 0x2147a89fb4608752807216D5070471c09A0DcE32
Arg [1] : _treasurer (address): 0xe2C534e470c20761dFb51713733395b01B73608d
Arg [2] : _dev (address): 0x9591d796C59f0ddDE14609D303b9D788A9344B62
Arg [3] : _feeCollector (address): 0xD04eFC6472b62917E028E78C8f736a1b9F1d09E2
Arg [4] : _initZPPerSecond (uint256): 1157407407407407407
Arg [5] : _startTime (uint256): 1709827200
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000002147a89fb4608752807216d5070471c09a0dce32
Arg [1] : 000000000000000000000000e2c534e470c20761dfb51713733395b01b73608d
Arg [2] : 0000000000000000000000009591d796c59f0ddde14609d303b9d788a9344b62
Arg [3] : 000000000000000000000000d04efc6472b62917e028e78c8f736a1b9f1d09e2
Arg [4] : 000000000000000000000000000000000000000000000000100fefe7a2eca12f
Arg [5] : 0000000000000000000000000000000000000000000000000000000065e9e480
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.