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.
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- WASRewardPool
- Optimization enabled
- false
- Compiler version
- v0.6.12+commit.27d51765
- EVM Version
- istanbul
- Verified at
- 2026-04-22T03:09:29.529147Z
Constructor Arguments
000000000000000000000000dc024763634f04969280493c1ca89ead7cad3e0e0000000000000000000000000a5b52b4803e3f1b1f1d34a4f7c9adc9ff5e41220000000000000000000000000000000000000000000000000000000000b26448
Arg [0] (address) : 0xdc024763634f04969280493c1ca89ead7cad3e0e
Arg [1] (address) : 0x0a5b52b4803e3f1b1f1d34a4f7c9adc9ff5e4122
Arg [2] (uint256) : 11691080
/D/Work/Extracy/CryptoTrading/smart-contracts/contracts/distribution/WASRewardPool.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import '@openzeppelin/contracts/math/Math.sol';
// Note that this pool has no minter key of WAS (rewards).
// Instead, the governance will call WAS distributeReward method and send reward to this pool at the beginning.
contract WASRewardPool {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// governance
address public operator;
// Info of each user.
struct UserInfo {
uint256 amount; // How many LP tokens the user has provided.
uint256 rewardDebt; // Reward debt. See explanation below.
}
// Info of each pool.
struct PoolInfo {
IERC20 lpToken; // Address of LP token contract.
uint256 allocPoint; // How many allocation points assigned to this pool. WASs to distribute per block.
uint256 lastRewardBlock; // Last block number that WASs distribution occurs.
uint256 accSharePerShare; // Accumulated WASs per share, times 1e18. See below.
bool isStarted; // if lastRewardBlock has passed
}
IERC20 public share;
// Info of each pool.
PoolInfo[] public poolInfo;
// Info of each user that stakes LP tokens.
mapping(uint256 => mapping(address => UserInfo)) public userInfo;
// Total allocation points. Must be the sum of all allocation points in all pools.
uint256 public totalAllocPoint = 0;
// The block number when WAS mining starts.
uint256 public startBlock;
uint256 public periodFinish;
// Dao fund (5%, initially)
uint256 public daoFundDivRate = 20;
// Dao address.
address public daoAddr;
uint256 public sharePerBlock = 0.2924 ether;
uint256 public constant BLOCKS_PER_MONTH = 172800;
uint256 public totalCirculating = 0;
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 RewardPaid(address indexed user, uint256 amount);
constructor(
address _share,
address _daoAddr,
uint256 _startBlock
) public {
require(block.number < _startBlock, "late");
if (_share != address(0)) share = IERC20(_share);
startBlock = _startBlock;
periodFinish = startBlock + BLOCKS_PER_MONTH;
daoAddr = _daoAddr;
operator = msg.sender;
}
modifier onlyOperator() {
require(operator == msg.sender, "WASRewardPool: caller is not the operator");
_;
}
modifier checkhalve() {
if (block.number >= periodFinish) {
sharePerBlock = sharePerBlock.div(2); // decreases 50% after every month ~ 30 days
periodFinish = block.number.add(BLOCKS_PER_MONTH);
}
_;
}
function checkPoolDuplicate(IERC20 _lpToken) internal view {
uint256 length = poolInfo.length;
for (uint256 pid = 0; pid < length; ++pid) {
require(poolInfo[pid].lpToken != _lpToken, "WASRewardPool: existing pool?");
}
}
// Add a new lp to the pool. Can only be called by the owner.
function add(
uint256 _allocPoint,
IERC20 _lpToken,
bool _withUpdate,
uint256 _lastRewardBlock
) public onlyOperator {
checkPoolDuplicate(_lpToken);
if (_withUpdate) {
massUpdatePools();
}
if (block.number < startBlock) {
// chef is sleeping
if (_lastRewardBlock == 0) {
_lastRewardBlock = startBlock;
} else {
if (_lastRewardBlock < startBlock) {
_lastRewardBlock = startBlock;
}
}
} else {
// chef is cooking
if (_lastRewardBlock == 0 || _lastRewardBlock < block.number) {
_lastRewardBlock = block.number;
}
}
bool _isStarted =
(_lastRewardBlock <= startBlock) ||
(_lastRewardBlock <= block.number);
poolInfo.push(PoolInfo({
lpToken : _lpToken,
allocPoint : _allocPoint,
lastRewardBlock : _lastRewardBlock,
accSharePerShare : 0,
isStarted : _isStarted
}));
if (_isStarted) {
totalAllocPoint = totalAllocPoint.add(_allocPoint);
}
}
// Update the given pool's WAS allocation point. Can only be called by the owner.
function set(uint256 _pid, uint256 _allocPoint) public onlyOperator {
massUpdatePools();
PoolInfo storage pool = poolInfo[_pid];
if (pool.isStarted) {
totalAllocPoint = totalAllocPoint.sub(pool.allocPoint).add(
_allocPoint
);
}
pool.allocPoint = _allocPoint;
}
// Return accumulate rewards over the given _from to _to block.
function getGeneratedReward(uint256 _from, uint256 _to) public view returns (uint256) {
uint256 endBlock = Math.min(block.timestamp, periodFinish);
if (_from >= _to) return 0;
if (_to >= endBlock) {
if (_from >= endBlock) return 0;
if (_from <= startBlock) return endBlock.sub(startBlock).mul(sharePerBlock);
return endBlock.sub(_from).mul(sharePerBlock);
} else {
if (_to <= startBlock) return 0;
if (_from <= startBlock) return _to.sub(startBlock).mul(sharePerBlock);
return _to.sub(_from).mul(sharePerBlock);
}
}
// View function to see pending WASs on frontend.
function pendingShare(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accSharePerShare = pool.accSharePerShare;
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (block.number > pool.lastRewardBlock && lpSupply != 0) {
uint256 _generatedReward = getGeneratedReward(pool.lastRewardBlock, block.number);
uint256 _shareReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
uint256 daoFundAmount = _shareReward.div(daoFundDivRate);
_shareReward = _shareReward.sub(daoFundAmount);
accSharePerShare = accSharePerShare.add(
_shareReward.mul(1e18).div(lpSupply)
);
}
return user.amount.mul(accSharePerShare).div(1e18).sub(user.rewardDebt);
}
// Update reward variables for all pools. Be careful of gas spending!
function massUpdatePools() public {
uint256 length = poolInfo.length;
for (uint256 pid = 0; pid < length; ++pid) {
updatePool(pid);
}
}
// Update reward variables of the given pool to be up-to-date.
function updatePool(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
if (block.number <= pool.lastRewardBlock) {
return;
}
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (lpSupply == 0) {
pool.lastRewardBlock = block.number;
return;
}
if (!pool.isStarted) {
pool.isStarted = true;
totalAllocPoint = totalAllocPoint.add(pool.allocPoint);
}
if (totalAllocPoint > 0) {
uint256 _generatedReward = getGeneratedReward(pool.lastRewardBlock, block.number);
uint256 _shareReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
uint256 daoFundAmount = _shareReward.div(daoFundDivRate);
safeShareTransfer(daoAddr, daoFundAmount);
_shareReward = _shareReward.sub(daoFundAmount);
pool.accSharePerShare = pool.accSharePerShare.add(
_shareReward.mul(1e18).div(lpSupply)
);
}
pool.lastRewardBlock = block.number;
}
// Deposit LP tokens.
function deposit(uint256 _pid, uint256 _amount) public checkhalve {
address _sender = msg.sender;
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_sender];
updatePool(_pid);
if (user.amount > 0) {
uint256 _pending = user.amount.mul(pool.accSharePerShare).div(1e18).sub(user.rewardDebt);
if (_pending > 0) {
safeShareTransfer(_sender, _pending);
emit RewardPaid(_sender, _pending);
}
}
if (_amount > 0) {
pool.lpToken.safeTransferFrom(_sender, address(this), _amount);
user.amount = user.amount.add(_amount);
}
user.rewardDebt = user.amount.mul(pool.accSharePerShare).div(1e18);
emit Deposit(_sender, _pid, _amount);
}
// Withdraw LP tokens.
function withdraw(uint256 _pid, uint256 _amount) public checkhalve {
address _sender = msg.sender;
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_sender];
require(user.amount >= _amount, "withdraw: not good");
updatePool(_pid);
uint256 _pending = user.amount.mul(pool.accSharePerShare).div(1e18).sub(user.rewardDebt);
if (_pending > 0) {
safeShareTransfer(_sender, _pending);
emit RewardPaid(_sender, _pending);
}
if (_amount > 0) {
user.amount = user.amount.sub(_amount);
pool.lpToken.safeTransfer(_sender, _amount);
}
user.rewardDebt = user.amount.mul(pool.accSharePerShare).div(1e18);
emit Withdraw(_sender, _pid, _amount);
}
// Withdraw without caring about rewards. EMERGENCY ONLY.
function emergencyWithdraw(uint256 _pid) public {
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(msg.sender, _amount);
emit EmergencyWithdraw(msg.sender, _pid, _amount);
}
// Safe share transfer function, just in case if rounding error causes pool to not have enough WASs.
function safeShareTransfer(address _to, uint256 _amount) internal {
uint256 _shareBal = share.balanceOf(address(this));
if (_shareBal > 0) {
if (_amount > _shareBal) {
share.safeTransfer(_to, _shareBal);
totalCirculating = totalCirculating.add(_shareBal);
} else {
share.safeTransfer(_to, _amount);
totalCirculating = totalCirculating.add(_amount);
}
}
}
function getTotalCirculating() view public returns (uint256) {
return totalCirculating;
}
function setOperator(address _operator) external onlyOperator {
operator = _operator;
}
function setDaoAddr(address _daoAddr) public {
require(msg.sender == daoAddr, "dao: wut?");
daoAddr = _daoAddr;
}
function governanceRecoverUnsupported(IERC20 _token, uint256 amount, address to) external onlyOperator {
if (block.number < startBlock + BLOCKS_PER_MONTH * 6) {
// do not allow to drain core token (WAS or lps) if less than 6 months after pool ends
require(_token != share, "share");
uint256 length = poolInfo.length;
for (uint256 pid = 0; pid < length; ++pid) {
PoolInfo storage pool = poolInfo[pid];
require(_token != pool.lpToken, "pool.lpToken");
}
}
_token.safeTransfer(to, amount);
}
}
/
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow, so we distribute
return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
}
}
/
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: value }(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
/
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
/SafeERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "./IERC20.sol";
import "../../math/SafeMath.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 SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
// solhint-disable-next-line max-line-length
require((value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).add(value);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) { // Return data is optional
// solhint-disable-next-line max-line-length
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
/IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
Compiler Settings
{"remappings":[],"optimizer":{"runs":200,"enabled":false},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"istanbul","compilationTarget":{"/D/Work/Extracy/CryptoTrading/smart-contracts/contracts/distribution/WASRewardPool.sol":"WASRewardPool"}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_share","internalType":"address"},{"type":"address","name":"_daoAddr","internalType":"address"},{"type":"uint256","name":"_startBlock","internalType":"uint256"}]},{"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":"RewardPaid","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"amount","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":"BLOCKS_PER_MONTH","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"add","inputs":[{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"address","name":"_lpToken","internalType":"contract IERC20"},{"type":"bool","name":"_withUpdate","internalType":"bool"},{"type":"uint256","name":"_lastRewardBlock","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"daoAddr","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"daoFundDivRate","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":"uint256","name":"","internalType":"uint256"}],"name":"getGeneratedReward","inputs":[{"type":"uint256","name":"_from","internalType":"uint256"},{"type":"uint256","name":"_to","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getTotalCirculating","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"governanceRecoverUnsupported","inputs":[{"type":"address","name":"_token","internalType":"contract IERC20"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"massUpdatePools","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"operator","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pendingShare","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"periodFinish","inputs":[]},{"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":"accSharePerShare","internalType":"uint256"},{"type":"bool","name":"isStarted","internalType":"bool"}],"name":"poolInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"set","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_allocPoint","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDaoAddr","inputs":[{"type":"address","name":"_daoAddr","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setOperator","inputs":[{"type":"address","name":"_operator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"share","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"sharePerBlock","inputs":[]},{"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":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalCirculating","inputs":[]},{"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
0x60806040526000600455601460075567040ed040345300006009556000600a5534801561002b57600080fd5b50604051612ad9380380612ad98339818101604052606081101561004e57600080fd5b810190808051906020019092919080519060200190929190805190602001909291905050508043106100e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f6c6174650000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461015e5782600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b806005819055506202a3006005540160068190555081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506128d3806102066000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c8063630b5ba1116100de578063bab607e511610097578063cf4b55cb11610071578063cf4b55cb14610623578063d48f9f3c14610685578063e2bbb158146106a3578063ebe2b12b146106db57610173565b8063bab607e5146105a3578063c18b582c146105e7578063c409084a1461060557610173565b8063630b5ba11461042057806393f1a40b1461042a57806396805e5414610493578063a8d2e46a146104f7578063a8d5fd651461052b578063b3ab15fb1461055f57610173565b806348cd4cb11161013057806348cd4cb1146102e657806351eb05a6146103045780635312ea8e1461033257806354575af414610360578063570ca735146103ce5780635b3b99fd1461040257610173565b80631526fe271461017857806317caf6f1146101ee5780631ab06ee51461020c578063231f0c6a14610244578063441a3e701461029057806345f32b6d146102c8575b600080fd5b6101a46004803603602081101561018e57600080fd5b81019080803590602001909291905050506106f9565b604051808673ffffffffffffffffffffffffffffffffffffffff16815260200185815260200184815260200183815260200182151581526020019550505050505060405180910390f35b6101f6610769565b6040518082815260200191505060405180910390f35b6102426004803603604081101561022257600080fd5b81019080803590602001909291908035906020019092919050505061076f565b005b61027a6004803603604081101561025a57600080fd5b810190808035906020019092919080359060200190929190505050610891565b6040518082815260200191505060405180910390f35b6102c6600480360360408110156102a657600080fd5b8101908080359060200190929190803590602001909291905050506109b2565b005b6102d0610cac565b6040518082815260200191505060405180910390f35b6102ee610cb2565b6040518082815260200191505060405180910390f35b6103306004803603602081101561031a57600080fd5b8101908080359060200190929190505050610cb8565b005b61035e6004803603602081101561034857600080fd5b8101908080359060200190929190505050610f22565b005b6103cc6004803603606081101561037657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611056565b005b6103d6611309565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61040a61132d565b6040518082815260200191505060405180910390f35b610428611337565b005b6104766004803603604081101561044057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611364565b604051808381526020018281526020019250505060405180910390f35b6104f5600480360360808110156104a957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080351515906020019092919080359060200190929190505050611395565b005b6104ff6115cc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105336115f2565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105a16004803603602081101561057557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611618565b005b6105e5600480360360208110156105b957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506116ff565b005b6105ef611806565b6040518082815260200191505060405180910390f35b61060d61180c565b6040518082815260200191505060405180910390f35b61066f6004803603604081101561063957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611813565b6040518082815260200191505060405180910390f35b61068d611a7a565b6040518082815260200191505060405180910390f35b6106d9600480360360408110156106b957600080fd5b810190808035906020019092919080359060200190929190505050611a80565b005b6106e3611d10565b6040518082815260200191505060405180910390f35b6002818154811061070657fe5b90600052602060002090600502016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900460ff16905085565b60045481565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610813576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061282a6029913960400191505060405180910390fd5b61081b611337565b60006002838154811061082a57fe5b906000526020600020906005020190508060040160009054906101000a900460ff16156108835761087c8261086e8360010154600454611d1690919063ffffffff16565b611d6090919063ffffffff16565b6004819055505b818160010181905550505050565b6000806108a042600654611de8565b90508284106108b35760009150506109ac565b808310610934578084106108cb5760009150506109ac565b6005548411610905576108fd6009546108ef60055484611d1690919063ffffffff16565b611e0190919063ffffffff16565b9150506109ac565b61092c60095461091e8684611d1690919063ffffffff16565b611e0190919063ffffffff16565b9150506109ac565b60055483116109475760009150506109ac565b60055484116109815761097960095461096b60055486611d1690919063ffffffff16565b611e0190919063ffffffff16565b9150506109ac565b6109a860095461099a8686611d1690919063ffffffff16565b611e0190919063ffffffff16565b9150505b92915050565b60065443106109f4576109d16002600954611e8790919063ffffffff16565b6009819055506109ed6202a30043611d6090919063ffffffff16565b6006819055505b6000339050600060028481548110610a0857fe5b9060005260206000209060050201905060006003600086815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508381600001541015610ae6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f77697468647261773a206e6f7420676f6f64000000000000000000000000000081525060200191505060405180910390fd5b610aef85610cb8565b6000610b3c8260010154610b2e670de0b6b3a7640000610b2087600301548760000154611e0190919063ffffffff16565b611e8790919063ffffffff16565b611d1690919063ffffffff16565b90506000811115610ba057610b518482611ed1565b8373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b6000851115610c1857610bc0858360000154611d1690919063ffffffff16565b8260000181905550610c1784868560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166120869092919063ffffffff16565b5b610c4d670de0b6b3a7640000610c3f85600301548560000154611e0190919063ffffffff16565b611e8790919063ffffffff16565b8260010181905550858473ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568876040518082815260200191505060405180910390a3505050505050565b600a5481565b60055481565b600060028281548110610cc757fe5b9060005260206000209060050201905080600201544311610ce85750610f1f565b60008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610d7557600080fd5b505afa158015610d89573d6000803e3d6000fd5b505050506040513d6020811015610d9f57600080fd5b810190808051906020019092919050505090506000811415610dcb574382600201819055505050610f1f565b8160040160009054906101000a900460ff16610e1e5760018260040160006101000a81548160ff021916908315150217905550610e178260010154600454611d6090919063ffffffff16565b6004819055505b60006004541115610f13576000610e39836002015443610891565b90506000610e68600454610e5a866001015485611e0190919063ffffffff16565b611e8790919063ffffffff16565b90506000610e8160075483611e8790919063ffffffff16565b9050610eaf600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611ed1565b610ec28183611d1690919063ffffffff16565b9150610f07610ef485610ee6670de0b6b3a764000086611e0190919063ffffffff16565b611e8790919063ffffffff16565b8660030154611d6090919063ffffffff16565b85600301819055505050505b43826002018190555050505b50565b600060028281548110610f3157fe5b9060005260206000209060050201905060006003600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600001549050600082600001819055506000826001018190555061100133828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166120869092919063ffffffff16565b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040518082815260200191505060405180910390a350505050565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061282a6029913960400191505060405180910390fd5b60066202a30002600554014310156112d957600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156111d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260058152602001807f736861726500000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600280549050905060005b818110156112d6576000600282815481106111f457fe5b906000526020600020906005020190508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156112ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f706f6f6c2e6c70546f6b656e000000000000000000000000000000000000000081525060200191505060405180910390fd5b508060010190506111dd565b50505b61130481838573ffffffffffffffffffffffffffffffffffffffff166120869092919063ffffffff16565b505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600a54905090565b6000600280549050905060005b818110156113605761135581610cb8565b806001019050611344565b5050565b6003602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611439576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061282a6029913960400191505060405180910390fd5b61144283612128565b811561145157611450611337565b5b60055443101561148457600081141561146e57600554905061147f565b60055481101561147e5760055490505b5b61149c565b600081148061149257504381105b1561149b574390505b5b6000600554821115806114af5750438211155b905060026040518060a001604052808673ffffffffffffffffffffffffffffffffffffffff16815260200187815260200184815260200160008152602001831515815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff021916908315150217905550505080156115c5576115be85600454611d6090919063ffffffff16565b6004819055505b5050505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061282a6029913960400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f64616f3a207775743f000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60095481565b6202a30081565b6000806002848154811061182357fe5b9060005260206000209060050201905060006003600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260030154905060008360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561191d57600080fd5b505afa158015611931573d6000803e3d6000fd5b505050506040513d602081101561194757600080fd5b8101908080519060200190929190505050905083600201544311801561196e575060008114155b15611a27576000611983856002015443610891565b905060006119b26004546119a4886001015485611e0190919063ffffffff16565b611e8790919063ffffffff16565b905060006119cb60075483611e8790919063ffffffff16565b90506119e08183611d1690919063ffffffff16565b9150611a21611a1285611a04670de0b6b3a764000086611e0190919063ffffffff16565b611e8790919063ffffffff16565b86611d6090919063ffffffff16565b94505050505b611a6e8360010154611a60670de0b6b3a7640000611a52868860000154611e0190919063ffffffff16565b611e8790919063ffffffff16565b611d1690919063ffffffff16565b94505050505092915050565b60075481565b6006544310611ac257611a9f6002600954611e8790919063ffffffff16565b600981905550611abb6202a30043611d6090919063ffffffff16565b6006819055505b6000339050600060028481548110611ad657fe5b9060005260206000209060050201905060006003600086815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050611b4385610cb8565b600081600001541115611c03576000611b9d8260010154611b8f670de0b6b3a7640000611b8187600301548760000154611e0190919063ffffffff16565b611e8790919063ffffffff16565b611d1690919063ffffffff16565b90506000811115611c0157611bb28482611ed1565b8373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b505b6000841115611c7d57611c5d8330868560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661222d909392919063ffffffff16565b611c74848260000154611d6090919063ffffffff16565b81600001819055505b611cb2670de0b6b3a7640000611ca484600301548460000154611e0190919063ffffffff16565b611e8790919063ffffffff16565b8160010181905550848373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15866040518082815260200191505060405180910390a35050505050565b60065481565b6000611d5883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506122ee565b905092915050565b600080828401905083811015611dde576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000818310611df75781611df9565b825b905092915050565b600080831415611e145760009050611e81565b6000828402905082848281611e2557fe5b0414611e7c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806128536021913960400191505060405180910390fd5b809150505b92915050565b6000611ec983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506123ae565b905092915050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611f5c57600080fd5b505afa158015611f70573d6000803e3d6000fd5b505050506040513d6020811015611f8657600080fd5b810190808051906020019092919050505090506000811115612081578082111561201757611ff78382600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166120869092919063ffffffff16565b61200c81600a54611d6090919063ffffffff16565b600a81905550612080565b6120648383600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166120869092919063ffffffff16565b61207982600a54611d6090919063ffffffff16565b600a819055505b5b505050565b6121238363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612474565b505050565b6000600280549050905060005b81811015612228578273ffffffffffffffffffffffffffffffffffffffff166002828154811061216157fe5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561221d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f574153526577617264506f6f6c3a206578697374696e6720706f6f6c3f00000081525060200191505060405180910390fd5b806001019050612135565b505050565b6122e8846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612474565b50505050565b600083831115829061239b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612360578082015181840152602081019050612345565b50505050905090810190601f16801561238d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000808311829061245a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561241f578082015181840152602081019050612404565b50505050905090810190601f16801561244c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161246657fe5b049050809150509392505050565b60606124d6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166125639092919063ffffffff16565b905060008151111561255e578080602001905160208110156124f757600080fd5b810190808051906020019092919050505061255d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612874602a913960400191505060405180910390fd5b5b505050565b6060612572848460008561257b565b90509392505050565b6060824710156125d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806128046026913960400191505060405180910390fd5b6125df85612724565b612651576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106126a1578051825260208201915060208101905060208303925061267e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612703576040519150601f19603f3d011682016040523d82523d6000602084013e612708565b606091505b5091509150612718828286612737565b92505050949350505050565b600080823b905060008111915050919050565b60608315612747578290506127fc565b60008351111561275a5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156127c15780820151818401526020810190506127a6565b50505050905090810190601f1680156127ee5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c574153526577617264506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220062017870b3b351acc68f6a7165d32c897b9df6b73db35160d290ff48e2ed51664736f6c634300060c0033000000000000000000000000dc024763634f04969280493c1ca89ead7cad3e0e0000000000000000000000000a5b52b4803e3f1b1f1d34a4f7c9adc9ff5e41220000000000000000000000000000000000000000000000000000000000b26448
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c8063630b5ba1116100de578063bab607e511610097578063cf4b55cb11610071578063cf4b55cb14610623578063d48f9f3c14610685578063e2bbb158146106a3578063ebe2b12b146106db57610173565b8063bab607e5146105a3578063c18b582c146105e7578063c409084a1461060557610173565b8063630b5ba11461042057806393f1a40b1461042a57806396805e5414610493578063a8d2e46a146104f7578063a8d5fd651461052b578063b3ab15fb1461055f57610173565b806348cd4cb11161013057806348cd4cb1146102e657806351eb05a6146103045780635312ea8e1461033257806354575af414610360578063570ca735146103ce5780635b3b99fd1461040257610173565b80631526fe271461017857806317caf6f1146101ee5780631ab06ee51461020c578063231f0c6a14610244578063441a3e701461029057806345f32b6d146102c8575b600080fd5b6101a46004803603602081101561018e57600080fd5b81019080803590602001909291905050506106f9565b604051808673ffffffffffffffffffffffffffffffffffffffff16815260200185815260200184815260200183815260200182151581526020019550505050505060405180910390f35b6101f6610769565b6040518082815260200191505060405180910390f35b6102426004803603604081101561022257600080fd5b81019080803590602001909291908035906020019092919050505061076f565b005b61027a6004803603604081101561025a57600080fd5b810190808035906020019092919080359060200190929190505050610891565b6040518082815260200191505060405180910390f35b6102c6600480360360408110156102a657600080fd5b8101908080359060200190929190803590602001909291905050506109b2565b005b6102d0610cac565b6040518082815260200191505060405180910390f35b6102ee610cb2565b6040518082815260200191505060405180910390f35b6103306004803603602081101561031a57600080fd5b8101908080359060200190929190505050610cb8565b005b61035e6004803603602081101561034857600080fd5b8101908080359060200190929190505050610f22565b005b6103cc6004803603606081101561037657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611056565b005b6103d6611309565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61040a61132d565b6040518082815260200191505060405180910390f35b610428611337565b005b6104766004803603604081101561044057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611364565b604051808381526020018281526020019250505060405180910390f35b6104f5600480360360808110156104a957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080351515906020019092919080359060200190929190505050611395565b005b6104ff6115cc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105336115f2565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105a16004803603602081101561057557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611618565b005b6105e5600480360360208110156105b957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506116ff565b005b6105ef611806565b6040518082815260200191505060405180910390f35b61060d61180c565b6040518082815260200191505060405180910390f35b61066f6004803603604081101561063957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611813565b6040518082815260200191505060405180910390f35b61068d611a7a565b6040518082815260200191505060405180910390f35b6106d9600480360360408110156106b957600080fd5b810190808035906020019092919080359060200190929190505050611a80565b005b6106e3611d10565b6040518082815260200191505060405180910390f35b6002818154811061070657fe5b90600052602060002090600502016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900460ff16905085565b60045481565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610813576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061282a6029913960400191505060405180910390fd5b61081b611337565b60006002838154811061082a57fe5b906000526020600020906005020190508060040160009054906101000a900460ff16156108835761087c8261086e8360010154600454611d1690919063ffffffff16565b611d6090919063ffffffff16565b6004819055505b818160010181905550505050565b6000806108a042600654611de8565b90508284106108b35760009150506109ac565b808310610934578084106108cb5760009150506109ac565b6005548411610905576108fd6009546108ef60055484611d1690919063ffffffff16565b611e0190919063ffffffff16565b9150506109ac565b61092c60095461091e8684611d1690919063ffffffff16565b611e0190919063ffffffff16565b9150506109ac565b60055483116109475760009150506109ac565b60055484116109815761097960095461096b60055486611d1690919063ffffffff16565b611e0190919063ffffffff16565b9150506109ac565b6109a860095461099a8686611d1690919063ffffffff16565b611e0190919063ffffffff16565b9150505b92915050565b60065443106109f4576109d16002600954611e8790919063ffffffff16565b6009819055506109ed6202a30043611d6090919063ffffffff16565b6006819055505b6000339050600060028481548110610a0857fe5b9060005260206000209060050201905060006003600086815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508381600001541015610ae6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f77697468647261773a206e6f7420676f6f64000000000000000000000000000081525060200191505060405180910390fd5b610aef85610cb8565b6000610b3c8260010154610b2e670de0b6b3a7640000610b2087600301548760000154611e0190919063ffffffff16565b611e8790919063ffffffff16565b611d1690919063ffffffff16565b90506000811115610ba057610b518482611ed1565b8373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b6000851115610c1857610bc0858360000154611d1690919063ffffffff16565b8260000181905550610c1784868560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166120869092919063ffffffff16565b5b610c4d670de0b6b3a7640000610c3f85600301548560000154611e0190919063ffffffff16565b611e8790919063ffffffff16565b8260010181905550858473ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568876040518082815260200191505060405180910390a3505050505050565b600a5481565b60055481565b600060028281548110610cc757fe5b9060005260206000209060050201905080600201544311610ce85750610f1f565b60008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610d7557600080fd5b505afa158015610d89573d6000803e3d6000fd5b505050506040513d6020811015610d9f57600080fd5b810190808051906020019092919050505090506000811415610dcb574382600201819055505050610f1f565b8160040160009054906101000a900460ff16610e1e5760018260040160006101000a81548160ff021916908315150217905550610e178260010154600454611d6090919063ffffffff16565b6004819055505b60006004541115610f13576000610e39836002015443610891565b90506000610e68600454610e5a866001015485611e0190919063ffffffff16565b611e8790919063ffffffff16565b90506000610e8160075483611e8790919063ffffffff16565b9050610eaf600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611ed1565b610ec28183611d1690919063ffffffff16565b9150610f07610ef485610ee6670de0b6b3a764000086611e0190919063ffffffff16565b611e8790919063ffffffff16565b8660030154611d6090919063ffffffff16565b85600301819055505050505b43826002018190555050505b50565b600060028281548110610f3157fe5b9060005260206000209060050201905060006003600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600001549050600082600001819055506000826001018190555061100133828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166120869092919063ffffffff16565b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040518082815260200191505060405180910390a350505050565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061282a6029913960400191505060405180910390fd5b60066202a30002600554014310156112d957600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156111d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260058152602001807f736861726500000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600280549050905060005b818110156112d6576000600282815481106111f457fe5b906000526020600020906005020190508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156112ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f706f6f6c2e6c70546f6b656e000000000000000000000000000000000000000081525060200191505060405180910390fd5b508060010190506111dd565b50505b61130481838573ffffffffffffffffffffffffffffffffffffffff166120869092919063ffffffff16565b505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600a54905090565b6000600280549050905060005b818110156113605761135581610cb8565b806001019050611344565b5050565b6003602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611439576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061282a6029913960400191505060405180910390fd5b61144283612128565b811561145157611450611337565b5b60055443101561148457600081141561146e57600554905061147f565b60055481101561147e5760055490505b5b61149c565b600081148061149257504381105b1561149b574390505b5b6000600554821115806114af5750438211155b905060026040518060a001604052808673ffffffffffffffffffffffffffffffffffffffff16815260200187815260200184815260200160008152602001831515815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff021916908315150217905550505080156115c5576115be85600454611d6090919063ffffffff16565b6004819055505b5050505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061282a6029913960400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f64616f3a207775743f000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60095481565b6202a30081565b6000806002848154811061182357fe5b9060005260206000209060050201905060006003600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260030154905060008360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561191d57600080fd5b505afa158015611931573d6000803e3d6000fd5b505050506040513d602081101561194757600080fd5b8101908080519060200190929190505050905083600201544311801561196e575060008114155b15611a27576000611983856002015443610891565b905060006119b26004546119a4886001015485611e0190919063ffffffff16565b611e8790919063ffffffff16565b905060006119cb60075483611e8790919063ffffffff16565b90506119e08183611d1690919063ffffffff16565b9150611a21611a1285611a04670de0b6b3a764000086611e0190919063ffffffff16565b611e8790919063ffffffff16565b86611d6090919063ffffffff16565b94505050505b611a6e8360010154611a60670de0b6b3a7640000611a52868860000154611e0190919063ffffffff16565b611e8790919063ffffffff16565b611d1690919063ffffffff16565b94505050505092915050565b60075481565b6006544310611ac257611a9f6002600954611e8790919063ffffffff16565b600981905550611abb6202a30043611d6090919063ffffffff16565b6006819055505b6000339050600060028481548110611ad657fe5b9060005260206000209060050201905060006003600086815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050611b4385610cb8565b600081600001541115611c03576000611b9d8260010154611b8f670de0b6b3a7640000611b8187600301548760000154611e0190919063ffffffff16565b611e8790919063ffffffff16565b611d1690919063ffffffff16565b90506000811115611c0157611bb28482611ed1565b8373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b505b6000841115611c7d57611c5d8330868560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661222d909392919063ffffffff16565b611c74848260000154611d6090919063ffffffff16565b81600001819055505b611cb2670de0b6b3a7640000611ca484600301548460000154611e0190919063ffffffff16565b611e8790919063ffffffff16565b8160010181905550848373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15866040518082815260200191505060405180910390a35050505050565b60065481565b6000611d5883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506122ee565b905092915050565b600080828401905083811015611dde576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000818310611df75781611df9565b825b905092915050565b600080831415611e145760009050611e81565b6000828402905082848281611e2557fe5b0414611e7c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806128536021913960400191505060405180910390fd5b809150505b92915050565b6000611ec983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506123ae565b905092915050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611f5c57600080fd5b505afa158015611f70573d6000803e3d6000fd5b505050506040513d6020811015611f8657600080fd5b810190808051906020019092919050505090506000811115612081578082111561201757611ff78382600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166120869092919063ffffffff16565b61200c81600a54611d6090919063ffffffff16565b600a81905550612080565b6120648383600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166120869092919063ffffffff16565b61207982600a54611d6090919063ffffffff16565b600a819055505b5b505050565b6121238363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612474565b505050565b6000600280549050905060005b81811015612228578273ffffffffffffffffffffffffffffffffffffffff166002828154811061216157fe5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561221d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f574153526577617264506f6f6c3a206578697374696e6720706f6f6c3f00000081525060200191505060405180910390fd5b806001019050612135565b505050565b6122e8846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612474565b50505050565b600083831115829061239b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612360578082015181840152602081019050612345565b50505050905090810190601f16801561238d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000808311829061245a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561241f578082015181840152602081019050612404565b50505050905090810190601f16801561244c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161246657fe5b049050809150509392505050565b60606124d6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166125639092919063ffffffff16565b905060008151111561255e578080602001905160208110156124f757600080fd5b810190808051906020019092919050505061255d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612874602a913960400191505060405180910390fd5b5b505050565b6060612572848460008561257b565b90509392505050565b6060824710156125d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806128046026913960400191505060405180910390fd5b6125df85612724565b612651576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106126a1578051825260208201915060208101905060208303925061267e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612703576040519150601f19603f3d011682016040523d82523d6000602084013e612708565b606091505b5091509150612718828286612737565b92505050949350505050565b600080823b905060008111915050919050565b60608315612747578290506127fc565b60008351111561275a5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156127c15780820151818401526020810190506127a6565b50505050905090810190601f1680156127ee5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c574153526577617264506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220062017870b3b351acc68f6a7165d32c897b9df6b73db35160d290ff48e2ed51664736f6c634300060c0033