Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- MasterChef
- Optimization enabled
- true
- Compiler version
- v0.8.28+commit.7893614a
- Optimization runs
- 200
- EVM Version
- paris
- Verified at
- 2026-02-16T12:29:42.653608Z
Constructor Arguments
0x00000000000000000000000036d8c21602ada33ab50070214c6e9e24be0ab97e00000000000000000000000000000000000000000000000000001e4942abc800000000000000000000000000bcaee0782f1b24e60bc61578a05f013bd664cea5
Arg [0] (address) : 0x36d8c21602ada33ab50070214c6e9e24be0ab97e
Arg [1] (uint256) : 33300000000000
Arg [2] (address) : 0xbcaee0782f1b24e60bc61578a05f013bd664cea5
contracts/master/master.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IPulseMaker {
function rewardMint(address to, uint256 amount) external;
function transfer(address to, uint256 amount) external returns (bool);
function balanceOf(address account) external view returns (uint256);
}
contract MasterChef is Ownable {
using SafeERC20 for IERC20;
address public feeCollector;
struct UserInfo {
uint256 amount;
uint256 rewardDebt;
}
struct PoolInfo {
IERC20 lpToken;
uint256 allocPoint;
uint256 lastRewardBlock;
uint256 accRewardsPerShare;
uint256 depositFee;
}
IPulseMaker public immutable pulseMaker;
uint256 public rewardsPerBlock;
uint256 public BONUS_MULTIPLIER = 1;
PoolInfo[] public poolInfo;
mapping(uint256 => mapping(address => UserInfo)) public userInfo;
uint256 public totalAllocPoint = 0;
uint256 public startBlock;
mapping(address => bool) public lpTokenAdded;
event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
event StartBlockUpdated(uint256 newStartBlock);
event RewardsPerBlockUpdated(uint256 newRewardsPerBlock);
event MultiplierUpdated(uint256 newMultiplier);
event PoolAdded(uint256 indexed pid, address indexed lpToken, uint256 allocPoint, uint256 depositFee);
event PoolUpdated(uint256 indexed pid, uint256 allocPoint);
event RewardMintFailed(uint256 indexed pid, uint256 amount);
event RewardTransferFailed(address indexed user, uint256 amount);
constructor(
IPulseMaker _pulseMaker,
uint256 _rewardsPerBlock,
address initialOwner
) Ownable(initialOwner) {
require(address(_pulseMaker) != address(0), "PulseMaker cannot be zero address");
require(initialOwner != address(0), "Initial owner cannot be zero address");
require(_rewardsPerBlock > 0 && _rewardsPerBlock <= 1e18, "Rewards per block out of range");
feeCollector = initialOwner;
pulseMaker = _pulseMaker;
rewardsPerBlock = _rewardsPerBlock;
}
function setStartBlock(uint256 _startBlock) external onlyOwner {
require(_startBlock > block.number, "startBlock must be in the future");
require(_startBlock < block.number + 1_000_000, "startBlock too far in future");
require(startBlock == 0, "startBlock already set");
startBlock = _startBlock;
emit StartBlockUpdated(_startBlock);
}
function updateMultiplier(uint256 multiplierNumber) external onlyOwner {
require(multiplierNumber > 0 && multiplierNumber <= 3, "Multiplier out of range");
BONUS_MULTIPLIER = multiplierNumber;
emit MultiplierUpdated(multiplierNumber);
}
function setRewardsPerBlock(uint256 _value) external onlyOwner {
require(_value > 0 && _value <= 1e18, "Rewards per block out of range");
rewardsPerBlock = _value;
emit RewardsPerBlockUpdated(_value);
}
function poolLength() external view returns (uint256) {
return poolInfo.length;
}
function add(uint256 _allocPoint, IERC20 _lpToken, uint256 _depositFee, bool _withUpdate) external onlyOwner {
require(startBlock > 0, "startBlock not set");
require(address(_lpToken) != address(0), "LP token cannot be zero address");
require(_depositFee <= 400, "Deposit fee must be 0-4%");
require(_allocPoint > 0 && _allocPoint <= 10000, "Allocation point out of range");
require(!lpTokenAdded[address(_lpToken)], "Pool for this token already exists");
require(poolInfo.length < 369, "Too many pools");
lpTokenAdded[address(_lpToken)] = true;
totalAllocPoint = totalAllocPoint + _allocPoint;
poolInfo.push(PoolInfo({
lpToken: _lpToken,
allocPoint: _allocPoint,
lastRewardBlock: block.number > startBlock ? block.number : startBlock,
accRewardsPerShare: 0,
depositFee: _depositFee
}));
if (_withUpdate) {
massUpdatePools();
}
emit PoolAdded(poolInfo.length - 1, address(_lpToken), _allocPoint, _depositFee);
}
function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) external onlyOwner {
require(_pid < poolInfo.length, "Invalid pool ID");
require(_allocPoint <= 10000, "Allocation point out of range");
uint256 prevAllocPoint = poolInfo[_pid].allocPoint;
poolInfo[_pid].allocPoint = _allocPoint;
if (prevAllocPoint != _allocPoint) {
totalAllocPoint = totalAllocPoint - prevAllocPoint + _allocPoint;
}
if (_withUpdate) {
massUpdatePools();
}
emit PoolUpdated(_pid, _allocPoint);
}
function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
return (_to - _from) * BONUS_MULTIPLIER;
}
function pendingRewards(uint256 _pid, address _user) external view returns (uint256) {
require(_pid < poolInfo.length, "Invalid pool ID");
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accRewardsPerShare = pool.accRewardsPerShare;
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (block.number > pool.lastRewardBlock && lpSupply != 0 && totalAllocPoint > 0) {
uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
uint256 tokenReward = multiplier * rewardsPerBlock * pool.allocPoint / totalAllocPoint;
accRewardsPerShare = accRewardsPerShare + (tokenReward * 1e12 / lpSupply);
}
return (user.amount * accRewardsPerShare / 1e12) - user.rewardDebt;
}
function massUpdatePools() public {
require(totalAllocPoint > 0, "No pools added");
uint256 length = poolInfo.length;
for (uint256 pid = 0; pid < length; ++pid) {
updatePool(pid);
}
}
function updatePool(uint256 _pid) public {
require(_pid < poolInfo.length, "Invalid pool ID");
require(totalAllocPoint > 0, "No pools added");
PoolInfo storage pool = poolInfo[_pid];
// Early return if no blocks have passed or farming hasn't started
if (block.number <= pool.lastRewardBlock || startBlock == 0) {
return;
}
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (lpSupply == 0) {
pool.lastRewardBlock = block.number;
return;
}
uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
uint256 tokenReward = multiplier * rewardsPerBlock * pool.allocPoint / totalAllocPoint;
// Skip mint/accrue if no reward this period (gas optimization)
if (tokenReward == 0) {
pool.lastRewardBlock = block.number;
return;
}
// Attempt to mint rewards first
bool mintSuccess = false;
try pulseMaker.rewardMint(address(this), tokenReward) {
mintSuccess = true;
} catch {
emit RewardMintFailed(_pid, tokenReward);
// Do NOT accrue if mint failed — prevents phantom/inflated pending rewards
}
// Only accrue per-share rewards if the mint actually succeeded
if (mintSuccess) {
pool.accRewardsPerShare = pool.accRewardsPerShare + (tokenReward * 1e12 / lpSupply);
}
// Always advance the lastRewardBlock to prevent repeated calculations
// for the same blocks (even if mint failed)
pool.lastRewardBlock = block.number;
}
function deposit(uint256 _pid, uint256 _amount) external {
require(_pid < poolInfo.length, "Invalid pool ID");
require(startBlock > 0, "startBlock not set");
PoolInfo storage pool = poolInfo[_pid];
require(_amount > 0, "Deposit amount must be greater than zero");
uint256 before = pool.lpToken.balanceOf(address(this));
pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
uint256 lpTokenFromFees = _amount * pool.depositFee / 10000;
if (lpTokenFromFees > 0) {
pool.lpToken.safeTransfer(feeCollector, lpTokenFromFees);
}
uint256 _after = pool.lpToken.balanceOf(address(this));
_amount = _after - before;
_deposit(_pid, _amount, msg.sender);
emit Deposit(msg.sender, _pid, _amount);
}
function _deposit(uint256 _pid, uint256 _amount, address _user) internal {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
updatePool(_pid);
uint256 pending;
if (user.amount > 0) {
pending = user.amount * pool.accRewardsPerShare / 1e12 - user.rewardDebt;
}
if (_amount > 0) {
user.amount = user.amount + _amount;
}
user.rewardDebt = user.amount * pool.accRewardsPerShare / 1e12;
if (pending > 0) {
uint256 balance = pulseMaker.balanceOf(address(this));
uint256 sendAmount = pending > balance ? balance : pending;
bool success = pulseMaker.transfer(_user, sendAmount);
if (!success) {
emit RewardTransferFailed(_user, pending);
// Note: The user gets whatever was available; the rest stays in contract as "unclaimable" for now.
}
}
}
function withdraw(uint256 _pid, uint256 _amount) external {
require(_pid < poolInfo.length, "Invalid pool ID");
require(startBlock > 0, "startBlock not set");
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
require(user.amount >= _amount, "Insufficient balance");
updatePool(_pid);
uint256 pending = user.amount * pool.accRewardsPerShare / 1e12 - user.rewardDebt;
if (_amount > 0) {
user.amount = user.amount - _amount;
}
user.rewardDebt = user.amount * pool.accRewardsPerShare / 1e12;
if (pending > 0) {
uint256 balance = pulseMaker.balanceOf(address(this));
uint256 sendAmount = pending > balance ? balance : pending;
bool success = pulseMaker.transfer(msg.sender, sendAmount);
if (!success) {
emit RewardTransferFailed(msg.sender, pending);
}
}
if (_amount > 0) {
pool.lpToken.safeTransfer(address(msg.sender), _amount);
}
emit Withdraw(msg.sender, _pid, _amount);
}
function emergencyWithdraw(uint256 _pid) external {
require(_pid < poolInfo.length, "Invalid pool ID");
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
uint256 amount = user.amount;
user.amount = 0;
user.rewardDebt = 0;
pool.lpToken.safeTransfer(address(msg.sender), amount);
emit EmergencyWithdraw(msg.sender, _pid, amount);
}
function claimAll() external {
require(startBlock > 0, "startBlock not set");
uint256 length = poolInfo.length;
require(length <= 50, "Too many pools to claim");
for (uint256 i = 0; i < length; i++) {
_deposit(i, 0, msg.sender);
}
}
}
@openzeppelin/contracts/access/Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../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.
*
* The initial owner is set to the address provided by the deployer. 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;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @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 {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @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 {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_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);
}
}
@openzeppelin/contracts/interfaces/IERC1363.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)
pragma solidity >=0.6.2;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}
@openzeppelin/contracts/interfaces/IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)
pragma solidity >=0.4.16;
import {IERC165} from "../utils/introspection/IERC165.sol";
@openzeppelin/contracts/interfaces/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)
pragma solidity >=0.4.16;
import {IERC20} from "../token/ERC20/IERC20.sol";
@openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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 value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` 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 value) external returns (bool);
}
@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 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 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @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.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, 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.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @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.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @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 {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @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 silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}
@openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
}
@openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
Compiler Settings
{"outputSelection":{"*":{"*":["*"],"":["*"]}},"optimizer":{"runs":200,"enabled":true},"libraries":{},"evmVersion":"paris"}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_pulseMaker","internalType":"contract IPulseMaker"},{"type":"uint256","name":"_rewardsPerBlock","internalType":"uint256"},{"type":"address","name":"initialOwner","internalType":"address"}]},{"type":"error","name":"OwnableInvalidOwner","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"OwnableUnauthorizedAccount","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"error","name":"SafeERC20FailedOperation","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"event","name":"Deposit","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"EmergencyWithdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"MultiplierUpdated","inputs":[{"type":"uint256","name":"newMultiplier","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"PoolAdded","inputs":[{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"address","name":"lpToken","internalType":"address","indexed":true},{"type":"uint256","name":"allocPoint","internalType":"uint256","indexed":false},{"type":"uint256","name":"depositFee","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"PoolUpdated","inputs":[{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"allocPoint","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RewardMintFailed","inputs":[{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RewardTransferFailed","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RewardsPerBlockUpdated","inputs":[{"type":"uint256","name":"newRewardsPerBlock","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"StartBlockUpdated","inputs":[{"type":"uint256","name":"newStartBlock","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Withdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"BONUS_MULTIPLIER","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"add","inputs":[{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"address","name":"_lpToken","internalType":"contract IERC20"},{"type":"uint256","name":"_depositFee","internalType":"uint256"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claimAll","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deposit","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"emergencyWithdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"feeCollector","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMultiplier","inputs":[{"type":"uint256","name":"_from","internalType":"uint256"},{"type":"uint256","name":"_to","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"lpTokenAdded","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"massUpdatePools","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pendingRewards","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"lpToken","internalType":"contract IERC20"},{"type":"uint256","name":"allocPoint","internalType":"uint256"},{"type":"uint256","name":"lastRewardBlock","internalType":"uint256"},{"type":"uint256","name":"accRewardsPerShare","internalType":"uint256"},{"type":"uint256","name":"depositFee","internalType":"uint256"}],"name":"poolInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"poolLength","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IPulseMaker"}],"name":"pulseMaker","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"rewardsPerBlock","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"set","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRewardsPerBlock","inputs":[{"type":"uint256","name":"_value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setStartBlock","inputs":[{"type":"uint256","name":"_startBlock","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"startBlock","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalAllocPoint","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateMultiplier","inputs":[{"type":"uint256","name":"multiplierNumber","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updatePool","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"rewardDebt","internalType":"uint256"}],"name":"userInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]}]
Contract Creation Code
0x60a06040526001600355600060065534801561001a57600080fd5b50604051611ff4380380611ff48339810160408190526100399161022c565b806001600160a01b03811661006957604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610072816101c4565b506001600160a01b0383166100d35760405162461bcd60e51b815260206004820152602160248201527f50756c73654d616b65722063616e6e6f74206265207a65726f206164647265736044820152607360f81b6064820152608401610060565b6001600160a01b0381166101355760405162461bcd60e51b8152602060048201526024808201527f496e697469616c206f776e65722063616e6e6f74206265207a65726f206164646044820152637265737360e01b6064820152608401610060565b60008211801561014d5750670de0b6b3a76400008211155b6101995760405162461bcd60e51b815260206004820152601e60248201527f526577617264732070657220626c6f636b206f7574206f662072616e676500006044820152606401610060565b600180546001600160a01b0319166001600160a01b039283161790559190911660805260025561026f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038116811461022957600080fd5b50565b60008060006060848603121561024157600080fd5b835161024c81610214565b60208501516040860151919450925061026481610214565b809150509250925092565b608051611d476102ad60003960008181610361015281816105a201528181610652015281816108f7015281816118a001526119520152611d476000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80638da5cb5b116100de578063b8d37c8a11610097578063d18df53c11610071578063d18df53c1461039e578063e2bbb158146103b1578063f2fde38b146103c4578063f35e4a6e146103d757600080fd5b8063b8d37c8a1461035c578063c415b95c14610383578063d1058e591461039657600080fd5b80638da5cb5b146102845780638dbb1e3a146102a957806393f1a40b146102bc578063988d7a6014610303578063a1003b2914610316578063a38b6f5b1461032957600080fd5b80635312ea8e1161014b578063630b5ba111610125578063630b5ba11461025857806364482f7914610260578063715018a6146102735780638aa285501461027b57600080fd5b80635312ea8e146102295780635eeb67101461023c5780635ffe61461461024557600080fd5b8063081e3eda146101935780631526fe27146101aa57806317caf6f1146101ef578063441a3e70146101f857806348cd4cb11461020d57806351eb05a614610216575b600080fd5b6004545b6040519081526020015b60405180910390f35b6101bd6101b8366004611ac6565b6103ea565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a0016101a1565b61019760065481565b61020b610206366004611adf565b610435565b005b61019760075481565b61020b610224366004611ac6565b61075a565b61020b610237366004611ac6565b6109e1565b61019760025481565b61020b610253366004611ac6565b610aa2565b61020b610b43565b61020b61026e366004611b0f565b610ba9565b61020b610ce8565b61019760035481565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101a1565b6101976102b7366004611adf565b610cfc565b6102ee6102ca366004611b5d565b60056020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101a1565b61020b610311366004611b8d565b610d1f565b61020b610324366004611ac6565b611040565b61034c610337366004611bd7565b60086020526000908152604090205460ff1681565b60405190151581526020016101a1565b6102917f000000000000000000000000000000000000000000000000000000000000000081565b600154610291906001600160a01b031681565b61020b6110e1565b6101976103ac366004611b5d565b611176565b61020b6103bf366004611adf565b611315565b61020b6103d2366004611bd7565b61156b565b61020b6103e5366004611ac6565b6115a9565b600481815481106103fa57600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909185565b600454821061045f5760405162461bcd60e51b815260040161045690611bfb565b60405180910390fd5b6000600754116104815760405162461bcd60e51b815260040161045690611c24565b60006004838154811061049657610496611c50565b60009182526020808320868452600580835260408086203387529093529190932080549290910290920192508311156105085760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610456565b6105118461075a565b6000816001015464e8d4a51000846003015484600001546105329190611c7c565b61053c9190611c93565b6105469190611cb5565b9050831561055e57815461055b908590611cb5565b82555b6003830154825464e8d4a510009161057591611c7c565b61057f9190611c93565b60018301558015610700576040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156105f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106159190611cc8565b905060008183116106265782610628565b815b60405163a9059cbb60e01b8152336004820152602481018290529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af115801561069b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bf9190611ce1565b9050806106fc5760405184815233907fa910a78b277b46eccc74e37f8dd90746c9f936b218daf7215eb007ca84ecda219060200160405180910390a25b5050505b831561071c57825461071c906001600160a01b031633866116d9565b604051848152859033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a35050505050565b600454811061077b5760405162461bcd60e51b815260040161045690611bfb565b6000600654116107be5760405162461bcd60e51b815260206004820152600e60248201526d139bc81c1bdbdb1cc8185919195960921b6044820152606401610456565b6000600482815481106107d3576107d3611c50565b906000526020600020906005020190508060020154431115806107f65750600754155b156107ff575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610847573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086b9190611cc8565b90508060000361088057504360029091015550565b6000610890836002015443610cfc565b905060006006548460010154600254846108aa9190611c7c565b6108b49190611c7c565b6108be9190611c93565b9050806000036108d8574384600201819055505050505050565b604051637210420560e01b8152306004820152602481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637210420590604401600060405180830381600087803b15801561094357600080fd5b505af1925050508015610954575060015b61099757857fbe929a9a5d1c3975fd7ad3cda1959e28bae99e1c9910a1a46c2a52405ce6f3b28360405161098a91815260200190565b60405180910390a261099b565b5060015b80156109d057836109b18364e8d4a51000611c7c565b6109bb9190611c93565b85600301546109ca9190611cfe565b60038601555b438560020181905550505050505050565b6004548110610a025760405162461bcd60e51b815260040161045690611bfb565b600060048281548110610a1757610a17611c50565b60009182526020808320858452600580835260408086203380885294528520805486825560018201969096559302018054909450919291610a64916001600160a01b0390911690836116d9565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595906020015b60405180910390a350505050565b610aaa61173d565b600081118015610abb575060038111155b610b075760405162461bcd60e51b815260206004820152601760248201527f4d756c7469706c696572206f7574206f662072616e67650000000000000000006044820152606401610456565b60038190556040518181527f4dbe4840d7465bd162f67814cea0b519567a2e0e578bcde61e7f4ced361e5a3d906020015b60405180910390a150565b600060065411610b865760405162461bcd60e51b815260206004820152600e60248201526d139bc81c1bdbdb1cc8185919195960921b6044820152606401610456565b60045460005b81811015610ba557610b9d8161075a565b600101610b8c565b5050565b610bb161173d565b6004548310610bd25760405162461bcd60e51b815260040161045690611bfb565b612710821115610c245760405162461bcd60e51b815260206004820152601d60248201527f416c6c6f636174696f6e20706f696e74206f7574206f662072616e67650000006044820152606401610456565b600060048481548110610c3957610c39611c50565b90600052602060002090600502016001015490508260048581548110610c6157610c61611c50565b906000526020600020906005020160010181905550828114610c9a578281600654610c8c9190611cb5565b610c969190611cfe565b6006555b8115610ca857610ca8610b43565b837f7fa9647ec1cc14e3822b46d05a2b9d4e019bde8875c0088c46b6503d71bf172284604051610cda91815260200190565b60405180910390a250505050565b610cf061173d565b610cfa600061176a565b565b600354600090610d0c8484611cb5565b610d169190611c7c565b90505b92915050565b610d2761173d565b600060075411610d495760405162461bcd60e51b815260040161045690611c24565b6001600160a01b038316610d9f5760405162461bcd60e51b815260206004820152601f60248201527f4c5020746f6b656e2063616e6e6f74206265207a65726f2061646472657373006044820152606401610456565b610190821115610df15760405162461bcd60e51b815260206004820152601860248201527f4465706f73697420666565206d75737420626520302d342500000000000000006044820152606401610456565b600084118015610e0357506127108411155b610e4f5760405162461bcd60e51b815260206004820152601d60248201527f416c6c6f636174696f6e20706f696e74206f7574206f662072616e67650000006044820152606401610456565b6001600160a01b03831660009081526008602052604090205460ff1615610ec35760405162461bcd60e51b815260206004820152602260248201527f506f6f6c20666f72207468697320746f6b656e20616c72656164792065786973604482015261747360f01b6064820152608401610456565b60045461017111610f075760405162461bcd60e51b815260206004820152600e60248201526d546f6f206d616e7920706f6f6c7360901b6044820152606401610456565b6001600160a01b0383166000908152600860205260409020805460ff19166001179055600654610f38908590611cfe565b60068190555060046040518060a00160405280856001600160a01b031681526020018681526020016007544311610f7157600754610f73565b435b815260006020808301829052604092830187905284546001808201875595835291819020845160059093020180546001600160a01b0319166001600160a01b0390931692909217825583015193810193909355810151600283015560608101516003830155608001516004909101558015610ff057610ff0610b43565b6004546001600160a01b0384169061100a90600190611cb5565b60408051878152602081018690527fcf71df2ad8f5180eea605cc5f16399aa74e3a68b2f23a5da121923b71b2ec36d9101610a94565b61104861173d565b6000811180156110605750670de0b6b3a76400008111155b6110ac5760405162461bcd60e51b815260206004820152601e60248201527f526577617264732070657220626c6f636b206f7574206f662072616e676500006044820152606401610456565b60028190556040518181527fff25a72e6996bcb300038c7814d8d1d0a8436d65bf6ce872b188ba61cc36c5ec90602001610b38565b6000600754116111035760405162461bcd60e51b815260040161045690611c24565b60045460328111156111575760405162461bcd60e51b815260206004820152601760248201527f546f6f206d616e7920706f6f6c7320746f20636c61696d0000000000000000006044820152606401610456565b60005b81811015610ba55761116e816000336117ba565b60010161115a565b600454600090831061119a5760405162461bcd60e51b815260040161045690611bfb565b6000600484815481106111af576111af611c50565b60009182526020808320878452600580835260408086206001600160a01b038a811688529452808620949091029091016003810154815492516370a0823160e01b815230600482015291965093949291909116906370a0823190602401602060405180830381865afa158015611229573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124d9190611cc8565b905083600201544311801561126157508015155b801561126f57506000600654115b156112dd576000611284856002015443610cfc565b9050600060065486600101546002548461129e9190611c7c565b6112a89190611c7c565b6112b29190611c93565b9050826112c48264e8d4a51000611c7c565b6112ce9190611c93565b6112d89085611cfe565b935050505b6001830154835464e8d4a51000906112f6908590611c7c565b6113009190611c93565b61130a9190611cb5565b979650505050505050565b60045482106113365760405162461bcd60e51b815260040161045690611bfb565b6000600754116113585760405162461bcd60e51b815260040161045690611c24565b60006004838154811061136d5761136d611c50565b90600052602060002090600502019050600082116113de5760405162461bcd60e51b815260206004820152602860248201527f4465706f73697420616d6f756e74206d7573742062652067726561746572207460448201526768616e207a65726f60c01b6064820152608401610456565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611426573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144a9190611cc8565b8254909150611464906001600160a01b0316333086611a16565b60006127108360040154856114799190611c7c565b6114839190611c93565b905080156114a75760015483546114a7916001600160a01b039182169116836116d9565b82546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156114ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115139190611cc8565b905061151f8382611cb5565b945061152c8686336117ba565b604051858152869033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a3505050505050565b61157361173d565b6001600160a01b03811661159d57604051631e4fbdf760e01b815260006004820152602401610456565b6115a68161176a565b50565b6115b161173d565b4381116116005760405162461bcd60e51b815260206004820181905260248201527f7374617274426c6f636b206d75737420626520696e20746865206675747572656044820152606401610456565b61160d43620f4240611cfe565b811061165b5760405162461bcd60e51b815260206004820152601c60248201527f7374617274426c6f636b20746f6f2066617220696e20667574757265000000006044820152606401610456565b600754156116a45760405162461bcd60e51b81526020600482015260166024820152751cdd185c9d109b1bd8dac8185b1c9958591e481cd95d60521b6044820152606401610456565b60078190556040518181527f4bb9dd09b6a66721c98f875ba3f3533d0bd985533957120aee36f4e1599068b590602001610b38565b6040516001600160a01b0383811660248301526044820183905261173891859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611a55565b505050565b6000546001600160a01b03163314610cfa5760405163118cdaa760e01b8152336004820152602401610456565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000600484815481106117cf576117cf611c50565b60009182526020808320878452600580835260408086206001600160a01b038916875290935291909320910290910191506118098561075a565b8054600090156118465760018201546003840154835464e8d4a510009161182f91611c7c565b6118399190611c93565b6118439190611cb5565b90505b841561185c578154611859908690611cfe565b82555b6003830154825464e8d4a510009161187391611c7c565b61187d9190611c93565b60018301558015611a0e576040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156118ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119139190611cc8565b905060008183116119245782611926565b815b60405163a9059cbb60e01b81526001600160a01b038881166004830152602482018390529192506000917f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af115801561199b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119bf9190611ce1565b905080611a0a57866001600160a01b03167fa910a78b277b46eccc74e37f8dd90746c9f936b218daf7215eb007ca84ecda2185604051611a0191815260200190565b60405180910390a25b5050505b505050505050565b6040516001600160a01b038481166024830152838116604483015260648201839052611a4f9186918216906323b872dd90608401611706565b50505050565b600080602060008451602086016000885af180611a78576040513d6000823e3d81fd5b50506000513d91508115611a90578060011415611a9d565b6001600160a01b0384163b155b15611a4f57604051635274afe760e01b81526001600160a01b0385166004820152602401610456565b600060208284031215611ad857600080fd5b5035919050565b60008060408385031215611af257600080fd5b50508035926020909101359150565b80151581146115a657600080fd5b600080600060608486031215611b2457600080fd5b83359250602084013591506040840135611b3d81611b01565b809150509250925092565b6001600160a01b03811681146115a657600080fd5b60008060408385031215611b7057600080fd5b823591506020830135611b8281611b48565b809150509250929050565b60008060008060808587031215611ba357600080fd5b843593506020850135611bb581611b48565b9250604085013591506060850135611bcc81611b01565b939692955090935050565b600060208284031215611be957600080fd5b8135611bf481611b48565b9392505050565b6020808252600f908201526e125b9d985b1a59081c1bdbdb081251608a1b604082015260600190565b6020808252601290820152711cdd185c9d109b1bd8dac81b9bdd081cd95d60721b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610d1957610d19611c66565b600082611cb057634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610d1957610d19611c66565b600060208284031215611cda57600080fd5b5051919050565b600060208284031215611cf357600080fd5b8151611bf481611b01565b80820180821115610d1957610d19611c6656fea2646970667358221220eefac55cc460f3a2065f03155b1f9337915930434291f3816eaee06e5c59c4ca64736f6c634300081c003300000000000000000000000036d8c21602ada33ab50070214c6e9e24be0ab97e00000000000000000000000000000000000000000000000000001e4942abc800000000000000000000000000bcaee0782f1b24e60bc61578a05f013bd664cea5
Deployed ByteCode
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80638da5cb5b116100de578063b8d37c8a11610097578063d18df53c11610071578063d18df53c1461039e578063e2bbb158146103b1578063f2fde38b146103c4578063f35e4a6e146103d757600080fd5b8063b8d37c8a1461035c578063c415b95c14610383578063d1058e591461039657600080fd5b80638da5cb5b146102845780638dbb1e3a146102a957806393f1a40b146102bc578063988d7a6014610303578063a1003b2914610316578063a38b6f5b1461032957600080fd5b80635312ea8e1161014b578063630b5ba111610125578063630b5ba11461025857806364482f7914610260578063715018a6146102735780638aa285501461027b57600080fd5b80635312ea8e146102295780635eeb67101461023c5780635ffe61461461024557600080fd5b8063081e3eda146101935780631526fe27146101aa57806317caf6f1146101ef578063441a3e70146101f857806348cd4cb11461020d57806351eb05a614610216575b600080fd5b6004545b6040519081526020015b60405180910390f35b6101bd6101b8366004611ac6565b6103ea565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a0016101a1565b61019760065481565b61020b610206366004611adf565b610435565b005b61019760075481565b61020b610224366004611ac6565b61075a565b61020b610237366004611ac6565b6109e1565b61019760025481565b61020b610253366004611ac6565b610aa2565b61020b610b43565b61020b61026e366004611b0f565b610ba9565b61020b610ce8565b61019760035481565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101a1565b6101976102b7366004611adf565b610cfc565b6102ee6102ca366004611b5d565b60056020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101a1565b61020b610311366004611b8d565b610d1f565b61020b610324366004611ac6565b611040565b61034c610337366004611bd7565b60086020526000908152604090205460ff1681565b60405190151581526020016101a1565b6102917f00000000000000000000000036d8c21602ada33ab50070214c6e9e24be0ab97e81565b600154610291906001600160a01b031681565b61020b6110e1565b6101976103ac366004611b5d565b611176565b61020b6103bf366004611adf565b611315565b61020b6103d2366004611bd7565b61156b565b61020b6103e5366004611ac6565b6115a9565b600481815481106103fa57600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909185565b600454821061045f5760405162461bcd60e51b815260040161045690611bfb565b60405180910390fd5b6000600754116104815760405162461bcd60e51b815260040161045690611c24565b60006004838154811061049657610496611c50565b60009182526020808320868452600580835260408086203387529093529190932080549290910290920192508311156105085760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610456565b6105118461075a565b6000816001015464e8d4a51000846003015484600001546105329190611c7c565b61053c9190611c93565b6105469190611cb5565b9050831561055e57815461055b908590611cb5565b82555b6003830154825464e8d4a510009161057591611c7c565b61057f9190611c93565b60018301558015610700576040516370a0823160e01b81523060048201526000907f00000000000000000000000036d8c21602ada33ab50070214c6e9e24be0ab97e6001600160a01b0316906370a0823190602401602060405180830381865afa1580156105f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106159190611cc8565b905060008183116106265782610628565b815b60405163a9059cbb60e01b8152336004820152602481018290529091506000906001600160a01b037f00000000000000000000000036d8c21602ada33ab50070214c6e9e24be0ab97e169063a9059cbb906044016020604051808303816000875af115801561069b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bf9190611ce1565b9050806106fc5760405184815233907fa910a78b277b46eccc74e37f8dd90746c9f936b218daf7215eb007ca84ecda219060200160405180910390a25b5050505b831561071c57825461071c906001600160a01b031633866116d9565b604051848152859033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a35050505050565b600454811061077b5760405162461bcd60e51b815260040161045690611bfb565b6000600654116107be5760405162461bcd60e51b815260206004820152600e60248201526d139bc81c1bdbdb1cc8185919195960921b6044820152606401610456565b6000600482815481106107d3576107d3611c50565b906000526020600020906005020190508060020154431115806107f65750600754155b156107ff575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610847573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086b9190611cc8565b90508060000361088057504360029091015550565b6000610890836002015443610cfc565b905060006006548460010154600254846108aa9190611c7c565b6108b49190611c7c565b6108be9190611c93565b9050806000036108d8574384600201819055505050505050565b604051637210420560e01b8152306004820152602481018290526000907f00000000000000000000000036d8c21602ada33ab50070214c6e9e24be0ab97e6001600160a01b031690637210420590604401600060405180830381600087803b15801561094357600080fd5b505af1925050508015610954575060015b61099757857fbe929a9a5d1c3975fd7ad3cda1959e28bae99e1c9910a1a46c2a52405ce6f3b28360405161098a91815260200190565b60405180910390a261099b565b5060015b80156109d057836109b18364e8d4a51000611c7c565b6109bb9190611c93565b85600301546109ca9190611cfe565b60038601555b438560020181905550505050505050565b6004548110610a025760405162461bcd60e51b815260040161045690611bfb565b600060048281548110610a1757610a17611c50565b60009182526020808320858452600580835260408086203380885294528520805486825560018201969096559302018054909450919291610a64916001600160a01b0390911690836116d9565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595906020015b60405180910390a350505050565b610aaa61173d565b600081118015610abb575060038111155b610b075760405162461bcd60e51b815260206004820152601760248201527f4d756c7469706c696572206f7574206f662072616e67650000000000000000006044820152606401610456565b60038190556040518181527f4dbe4840d7465bd162f67814cea0b519567a2e0e578bcde61e7f4ced361e5a3d906020015b60405180910390a150565b600060065411610b865760405162461bcd60e51b815260206004820152600e60248201526d139bc81c1bdbdb1cc8185919195960921b6044820152606401610456565b60045460005b81811015610ba557610b9d8161075a565b600101610b8c565b5050565b610bb161173d565b6004548310610bd25760405162461bcd60e51b815260040161045690611bfb565b612710821115610c245760405162461bcd60e51b815260206004820152601d60248201527f416c6c6f636174696f6e20706f696e74206f7574206f662072616e67650000006044820152606401610456565b600060048481548110610c3957610c39611c50565b90600052602060002090600502016001015490508260048581548110610c6157610c61611c50565b906000526020600020906005020160010181905550828114610c9a578281600654610c8c9190611cb5565b610c969190611cfe565b6006555b8115610ca857610ca8610b43565b837f7fa9647ec1cc14e3822b46d05a2b9d4e019bde8875c0088c46b6503d71bf172284604051610cda91815260200190565b60405180910390a250505050565b610cf061173d565b610cfa600061176a565b565b600354600090610d0c8484611cb5565b610d169190611c7c565b90505b92915050565b610d2761173d565b600060075411610d495760405162461bcd60e51b815260040161045690611c24565b6001600160a01b038316610d9f5760405162461bcd60e51b815260206004820152601f60248201527f4c5020746f6b656e2063616e6e6f74206265207a65726f2061646472657373006044820152606401610456565b610190821115610df15760405162461bcd60e51b815260206004820152601860248201527f4465706f73697420666565206d75737420626520302d342500000000000000006044820152606401610456565b600084118015610e0357506127108411155b610e4f5760405162461bcd60e51b815260206004820152601d60248201527f416c6c6f636174696f6e20706f696e74206f7574206f662072616e67650000006044820152606401610456565b6001600160a01b03831660009081526008602052604090205460ff1615610ec35760405162461bcd60e51b815260206004820152602260248201527f506f6f6c20666f72207468697320746f6b656e20616c72656164792065786973604482015261747360f01b6064820152608401610456565b60045461017111610f075760405162461bcd60e51b815260206004820152600e60248201526d546f6f206d616e7920706f6f6c7360901b6044820152606401610456565b6001600160a01b0383166000908152600860205260409020805460ff19166001179055600654610f38908590611cfe565b60068190555060046040518060a00160405280856001600160a01b031681526020018681526020016007544311610f7157600754610f73565b435b815260006020808301829052604092830187905284546001808201875595835291819020845160059093020180546001600160a01b0319166001600160a01b0390931692909217825583015193810193909355810151600283015560608101516003830155608001516004909101558015610ff057610ff0610b43565b6004546001600160a01b0384169061100a90600190611cb5565b60408051878152602081018690527fcf71df2ad8f5180eea605cc5f16399aa74e3a68b2f23a5da121923b71b2ec36d9101610a94565b61104861173d565b6000811180156110605750670de0b6b3a76400008111155b6110ac5760405162461bcd60e51b815260206004820152601e60248201527f526577617264732070657220626c6f636b206f7574206f662072616e676500006044820152606401610456565b60028190556040518181527fff25a72e6996bcb300038c7814d8d1d0a8436d65bf6ce872b188ba61cc36c5ec90602001610b38565b6000600754116111035760405162461bcd60e51b815260040161045690611c24565b60045460328111156111575760405162461bcd60e51b815260206004820152601760248201527f546f6f206d616e7920706f6f6c7320746f20636c61696d0000000000000000006044820152606401610456565b60005b81811015610ba55761116e816000336117ba565b60010161115a565b600454600090831061119a5760405162461bcd60e51b815260040161045690611bfb565b6000600484815481106111af576111af611c50565b60009182526020808320878452600580835260408086206001600160a01b038a811688529452808620949091029091016003810154815492516370a0823160e01b815230600482015291965093949291909116906370a0823190602401602060405180830381865afa158015611229573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124d9190611cc8565b905083600201544311801561126157508015155b801561126f57506000600654115b156112dd576000611284856002015443610cfc565b9050600060065486600101546002548461129e9190611c7c565b6112a89190611c7c565b6112b29190611c93565b9050826112c48264e8d4a51000611c7c565b6112ce9190611c93565b6112d89085611cfe565b935050505b6001830154835464e8d4a51000906112f6908590611c7c565b6113009190611c93565b61130a9190611cb5565b979650505050505050565b60045482106113365760405162461bcd60e51b815260040161045690611bfb565b6000600754116113585760405162461bcd60e51b815260040161045690611c24565b60006004838154811061136d5761136d611c50565b90600052602060002090600502019050600082116113de5760405162461bcd60e51b815260206004820152602860248201527f4465706f73697420616d6f756e74206d7573742062652067726561746572207460448201526768616e207a65726f60c01b6064820152608401610456565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611426573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144a9190611cc8565b8254909150611464906001600160a01b0316333086611a16565b60006127108360040154856114799190611c7c565b6114839190611c93565b905080156114a75760015483546114a7916001600160a01b039182169116836116d9565b82546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156114ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115139190611cc8565b905061151f8382611cb5565b945061152c8686336117ba565b604051858152869033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a3505050505050565b61157361173d565b6001600160a01b03811661159d57604051631e4fbdf760e01b815260006004820152602401610456565b6115a68161176a565b50565b6115b161173d565b4381116116005760405162461bcd60e51b815260206004820181905260248201527f7374617274426c6f636b206d75737420626520696e20746865206675747572656044820152606401610456565b61160d43620f4240611cfe565b811061165b5760405162461bcd60e51b815260206004820152601c60248201527f7374617274426c6f636b20746f6f2066617220696e20667574757265000000006044820152606401610456565b600754156116a45760405162461bcd60e51b81526020600482015260166024820152751cdd185c9d109b1bd8dac8185b1c9958591e481cd95d60521b6044820152606401610456565b60078190556040518181527f4bb9dd09b6a66721c98f875ba3f3533d0bd985533957120aee36f4e1599068b590602001610b38565b6040516001600160a01b0383811660248301526044820183905261173891859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611a55565b505050565b6000546001600160a01b03163314610cfa5760405163118cdaa760e01b8152336004820152602401610456565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000600484815481106117cf576117cf611c50565b60009182526020808320878452600580835260408086206001600160a01b038916875290935291909320910290910191506118098561075a565b8054600090156118465760018201546003840154835464e8d4a510009161182f91611c7c565b6118399190611c93565b6118439190611cb5565b90505b841561185c578154611859908690611cfe565b82555b6003830154825464e8d4a510009161187391611c7c565b61187d9190611c93565b60018301558015611a0e576040516370a0823160e01b81523060048201526000907f00000000000000000000000036d8c21602ada33ab50070214c6e9e24be0ab97e6001600160a01b0316906370a0823190602401602060405180830381865afa1580156118ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119139190611cc8565b905060008183116119245782611926565b815b60405163a9059cbb60e01b81526001600160a01b038881166004830152602482018390529192506000917f00000000000000000000000036d8c21602ada33ab50070214c6e9e24be0ab97e169063a9059cbb906044016020604051808303816000875af115801561199b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119bf9190611ce1565b905080611a0a57866001600160a01b03167fa910a78b277b46eccc74e37f8dd90746c9f936b218daf7215eb007ca84ecda2185604051611a0191815260200190565b60405180910390a25b5050505b505050505050565b6040516001600160a01b038481166024830152838116604483015260648201839052611a4f9186918216906323b872dd90608401611706565b50505050565b600080602060008451602086016000885af180611a78576040513d6000823e3d81fd5b50506000513d91508115611a90578060011415611a9d565b6001600160a01b0384163b155b15611a4f57604051635274afe760e01b81526001600160a01b0385166004820152602401610456565b600060208284031215611ad857600080fd5b5035919050565b60008060408385031215611af257600080fd5b50508035926020909101359150565b80151581146115a657600080fd5b600080600060608486031215611b2457600080fd5b83359250602084013591506040840135611b3d81611b01565b809150509250925092565b6001600160a01b03811681146115a657600080fd5b60008060408385031215611b7057600080fd5b823591506020830135611b8281611b48565b809150509250929050565b60008060008060808587031215611ba357600080fd5b843593506020850135611bb581611b48565b9250604085013591506060850135611bcc81611b01565b939692955090935050565b600060208284031215611be957600080fd5b8135611bf481611b48565b9392505050565b6020808252600f908201526e125b9d985b1a59081c1bdbdb081251608a1b604082015260600190565b6020808252601290820152711cdd185c9d109b1bd8dac81b9bdd081cd95d60721b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610d1957610d19611c66565b600082611cb057634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610d1957610d19611c66565b600060208284031215611cda57600080fd5b5051919050565b600060208284031215611cf357600080fd5b8151611bf481611b01565b80820180821115610d1957610d19611c6656fea2646970667358221220eefac55cc460f3a2065f03155b1f9337915930434291f3816eaee06e5c59c4ca64736f6c634300081c0033