- Contract name:
- FarmBoosterProxyFactory
- Optimization enabled
- true
- Compiler version
- v0.8.9+commit.e5eed63a
- Optimization runs
- 999999
- EVM Version
- default
- Verified at
- 2024-07-20T04:34:49.710072Z
contracts/FarmBoosterProxyFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "./interfaces/IFarmBooster.sol";
import "./FarmBoosterProxy.sol";
contract FarmBoosterProxyFactory {
address public immutable Farm_Booster;
address public immutable masterchefV2;
address public immutable cakeToken;
// Record the user proxy contract address
mapping(address => address) public proxyContract;
// Record the user address corresponding to the proxy
mapping(address => address) public proxyUser;
event NewFarmBoosterProxyContract(address indexed farmBoosterProxyAddress);
/**
* @notice Constructor
* @param _farmBooster: the address of the farm booster
* @param _masterchefV2: the address of the Masterchef V2
* @param _cakeToken: the address of the cake token
*/
constructor(
address _farmBooster,
address _masterchefV2,
address _cakeToken
) {
Farm_Booster = _farmBooster;
masterchefV2 = _masterchefV2;
cakeToken = _cakeToken;
}
/**
* @notice It creates the farm booster Proxy contract and initializes the contract.
*/
function createFarmBoosterProxy() external {
require(proxyContract[msg.sender] == address(0), "The current user already has a proxy");
bytes memory bytecode = type(FarmBoosterProxy).creationCode;
bytes32 salt = keccak256(abi.encodePacked(block.timestamp, block.number, msg.sender));
address farmBoosterProxyAddress;
assembly {
farmBoosterProxyAddress := create2(0, add(bytecode, 32), mload(bytecode), salt)
}
require(proxyUser[farmBoosterProxyAddress] == address(0), "Proxy already exists");
proxyContract[msg.sender] = farmBoosterProxyAddress;
proxyUser[farmBoosterProxyAddress] = msg.sender;
FarmBoosterProxy(farmBoosterProxyAddress).initialize(msg.sender, Farm_Booster, masterchefV2, cakeToken);
IFarmBooster(Farm_Booster).setProxy(msg.sender, farmBoosterProxyAddress);
emit NewFarmBoosterProxyContract(farmBoosterProxyAddress);
}
}
contracts/FarmBoosterProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "./openzeppelin/token/ERC20/utils/SafeERC20.sol";
import "./openzeppelin/security/ReentrancyGuard.sol";
import "./interfaces/IMasterChefV2.sol";
import "./interfaces/IFarmBooster.sol";
contract FarmBoosterProxy is ReentrancyGuard {
using SafeERC20 for IERC20;
// The address of the farm booster proxy factory
address public immutable FARM_BOOSTER_PROXY_FACTORY;
IMasterChefV2 public masterchefV2;
IERC20 public cakeToken;
IFarmBooster public farmBooster;
address public admin;
// Whether it is initialized
bool public isInitialized;
// Record whether lp was approved
mapping(address => bool) public lpApproved;
event DepositByProxy(address indexed user, address indexed proxy, uint256 indexed pid, uint256 amount);
event WithdrawByProxy(address indexed user, address indexed proxy, uint256 indexed pid, uint256 amount);
event EmergencyWithdrawByProxy(address indexed user, address indexed proxy, uint256 indexed pid);
/**
* @notice Constructor
*/
constructor() {
FARM_BOOSTER_PROXY_FACTORY = msg.sender;
}
/**
* @notice Checks if the msg.sender is the admin address.
*/
modifier onlyAdmin() {
require(msg.sender == admin, "admin: wut?");
_;
}
/**
* @notice It initializes the contract
* @dev It can only be called once.
* @param _admin: the admin address
* @param _farmBooster: the farm booster address
* @param _masterchefV2: the address of the Masterchef V2
* @param _cakeToken: the address of the cake token
*/
function initialize(
address _admin,
address _farmBooster,
address _masterchefV2,
address _cakeToken
) external {
require(!isInitialized, "Operations: Already initialized");
require(msg.sender == FARM_BOOSTER_PROXY_FACTORY, "Operations: Not factory");
// Make this contract initialized
isInitialized = true;
admin = _admin;
farmBooster = IFarmBooster(_farmBooster);
masterchefV2 = IMasterChefV2(_masterchefV2);
cakeToken = IERC20(_cakeToken);
}
/**
* @notice Deposit LP tokens to pool.
* @dev It can only be called by admin.
* @param _pid The id of the pool.
* @param _amount Amount of LP tokens to deposit.
*/
function deposit(uint256 _pid, uint256 _amount) external nonReentrant onlyAdmin {
uint256 poolLength = masterchefV2.poolLength();
require(_pid < poolLength, "Pool is not exist");
address lpAddress = masterchefV2.lpToken(_pid);
IERC20(lpAddress).safeTransferFrom(msg.sender, address(this), _amount);
if (!lpApproved[lpAddress]) {
IERC20(lpAddress).approve(address(masterchefV2), type(uint256).max);
lpApproved[lpAddress] = true;
}
masterchefV2.deposit(_pid, _amount);
harvestCake();
farmBooster.updatePoolBoostMultiplier(msg.sender, _pid);
emit DepositByProxy(msg.sender, address(this), _pid, _amount);
}
/**
* @notice Withdraw LP tokens from pool.
* @dev It can only be called by admin.
* @param _pid The id of the pool.
* @param _amount Amount of LP tokens to withdraw.
*/
function withdraw(uint256 _pid, uint256 _amount) external nonReentrant onlyAdmin {
uint256 poolLength = masterchefV2.poolLength();
require(_pid < poolLength, "Pool is not exist");
masterchefV2.withdraw(_pid, _amount);
address lpAddress = masterchefV2.lpToken(_pid);
IERC20(lpAddress).safeTransfer(msg.sender, _amount);
harvestCake();
farmBooster.updatePoolBoostMultiplier(msg.sender, _pid);
emit WithdrawByProxy(msg.sender, address(this), _pid, _amount);
}
/**
* @notice Withdraw without caring about the rewards. EMERGENCY ONLY.
* @dev It can only be called by admin.
* @param _pid The id of the pool.
*/
function emergencyWithdraw(uint256 _pid) external nonReentrant onlyAdmin {
uint256 poolLength = masterchefV2.poolLength();
require(_pid < poolLength, "Pool is not exist");
masterchefV2.emergencyWithdraw(_pid);
address lpAddress = masterchefV2.lpToken(_pid);
IERC20(lpAddress).safeTransfer(msg.sender, IERC20(lpAddress).balanceOf(address(this)));
harvestCake();
farmBooster.updatePoolBoostMultiplier(msg.sender, _pid);
emit EmergencyWithdrawByProxy(msg.sender, address(this), _pid);
}
function harvestCake() internal {
uint256 cakeBalance = cakeToken.balanceOf(address(this));
if (cakeBalance > 0) {
cakeToken.safeTransfer(msg.sender, cakeBalance);
}
}
}
contracts/interfaces/IFarmBooster.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
interface IFarmBooster {
function onCakePoolUpdate(
address _user,
uint256 _lockedAmount,
uint256 _lockedDuration,
uint256 _totalLockedAmount,
uint256 _maxLockDuration
) external;
function updatePoolBoostMultiplier(address _user, uint256 _pid) external;
function setProxy(address _user, address _proxy) external;
function isBoosterPool(address _user, uint256 _pid) external view returns (bool);
}
contracts/interfaces/IMasterChefV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
interface IMasterChefV2 {
function deposit(uint256 _pid, uint256 _amount) external;
function withdraw(uint256 _pid, uint256 _amount) external;
function pendingCake(uint256 _pid, address _user) external view returns (uint256);
function userInfo(uint256 _pid, address _user)
external
view
returns (
uint256,
uint256,
uint256
);
function emergencyWithdraw(uint256 _pid) external;
function lpToken(uint256 _pid) external view returns (address);
function poolLength() external view returns (uint256 pools);
function getBoostMultiplier(address _user, uint256 _pid) external view returns (uint256);
function updateBoostMultiplier(
address _user,
uint256 _pid,
uint256 _newMultiplier
) external;
}
contracts/openzeppelin/security/ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}
contracts/openzeppelin/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
/**
* @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);
}
contracts/openzeppelin/token/ERC20/utils/SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
contracts/openzeppelin/utils/Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
Compiler Settings
{"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata","storageLayout"],"":["ast"]}},"optimizer":{"runs":999999,"enabled":true},"libraries":{}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_farmBooster","internalType":"address"},{"type":"address","name":"_masterchefV2","internalType":"address"},{"type":"address","name":"_cakeToken","internalType":"address"}]},{"type":"event","name":"NewFarmBoosterProxyContract","inputs":[{"type":"address","name":"farmBoosterProxyAddress","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"Farm_Booster","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"cakeToken","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"createFarmBoosterProxy","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"masterchefV2","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"proxyContract","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"proxyUser","inputs":[{"type":"address","name":"","internalType":"address"}]}]
Contract Creation Code
0x60e060405234801561001057600080fd5b506040516120da3803806120da83398101604081905261002f91610068565b6001600160a01b0392831660805290821660a0521660c0526100ab565b80516001600160a01b038116811461006357600080fd5b919050565b60008060006060848603121561007d57600080fd5b6100868461004c565b92506100946020850161004c565b91506100a26040850161004c565b90509250925092565b60805160a05160c051611fe56100f56000396000818160e5015261046501526000818161010c015261043d01526000818161013301528181610415015261050f0152611fe56000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063cb528b5211610050578063cb528b5214610107578063d5f3e96b1461012e578063f9d254371461015557600080fd5b806311a5f6bb14610077578063803f18dc146100815780638904bf2f146100e0575b600080fd5b61007f61018b565b005b6100b761008f3660046105c0565b60006020819052908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6100b77f000000000000000000000000000000000000000000000000000000000000000081565b6100b77f000000000000000000000000000000000000000000000000000000000000000081565b6100b77f000000000000000000000000000000000000000000000000000000000000000081565b6100b76101633660046105c0565b60016020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b3360009081526020819052604090205473ffffffffffffffffffffffffffffffffffffffff1615610242576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f5468652063757272656e74207573657220616c7265616479206861732061207060448201527f726f78790000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b600060405180602001610254906105b3565b8181037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09081018352601f909101166040818152426020830152439082015233606090811b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016908201529091506000906074016040516020818303038152906040528051906020012090506000818351602085016000f573ffffffffffffffffffffffffffffffffffffffff808216600090815260016020526040902054919250161561037e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f50726f787920616c7265616479206578697374730000000000000000000000006044820152606401610239565b33600081815260208181526040808320805473ffffffffffffffffffffffffffffffffffffffff8781167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316811790935582865260019094529382902080549094168517909355517ff8c8765e00000000000000000000000000000000000000000000000000000000815260048101939093527f0000000000000000000000000000000000000000000000000000000000000000811660248401527f0000000000000000000000000000000000000000000000000000000000000000811660448401527f00000000000000000000000000000000000000000000000000000000000000001660648301529063f8c8765e90608401600060405180830381600087803b1580156104ae57600080fd5b505af11580156104c2573d6000803e3d6000fd5b50506040517fa9d4630c00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff84811660248301527f000000000000000000000000000000000000000000000000000000000000000016925063a9d4630c9150604401600060405180830381600087803b15801561055557600080fd5b505af1158015610569573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff841692507ff85bdc0fe80e0f017a407160865fb16be386816f96c7d7fb8a034105abb7c8e59150600090a2505050565b6119b2806105fe83390190565b6000602082840312156105d257600080fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146105f657600080fd5b939250505056fe60a060405234801561001057600080fd5b5060016000553360805260805161197661003c60003960008181610167015261112e01526119766000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c80638904bf2f11610081578063f851a4401161005b578063f851a440146101ef578063f8c8765e1461020f578063fbcdbd0e1461022257600080fd5b80638904bf2f1461019c578063cb528b52146101bc578063e2bbb158146101dc57600080fd5b8063441a3e70116100b2578063441a3e701461014d57806351035703146101625780635312ea8e1461018957600080fd5b80630643aae1146100ce578063392e53cd14610118575b600080fd5b6003546100ee9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b60045461013d9074010000000000000000000000000000000000000000900460ff1681565b604051901515815260200161010f565b61016061015b366004611779565b610245565b005b6100ee7f000000000000000000000000000000000000000000000000000000000000000081565b61016061019736600461179b565b610675565b6002546100ee9073ffffffffffffffffffffffffffffffffffffffff1681565b6001546100ee9073ffffffffffffffffffffffffffffffffffffffff1681565b6101606101ea366004611779565b610b2e565b6004546100ee9073ffffffffffffffffffffffffffffffffffffffff1681565b61016061021d3660046117d6565b611091565b61013d610230366004611832565b60056020526000908152604090205460ff1681565b600260005414156102b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260005560045473ffffffffffffffffffffffffffffffffffffffff16331461033d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f00000000000000000000000000000000000000000060448201526064016102ae565b600154604080517f081e3eda000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff169163081e3eda916004808301926020929190829003018186803b1580156103a857600080fd5b505afa1580156103bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e0919061184f565b905080831061044b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f506f6f6c206973206e6f7420657869737400000000000000000000000000000060448201526064016102ae565b6001546040517f441a3e70000000000000000000000000000000000000000000000000000000008152600481018590526024810184905273ffffffffffffffffffffffffffffffffffffffff9091169063441a3e7090604401600060405180830381600087803b1580156104be57600080fd5b505af11580156104d2573d6000803e3d6000fd5b50506001546040517f78ed5d1f000000000000000000000000000000000000000000000000000000008152600481018790526000935073ffffffffffffffffffffffffffffffffffffffff90911691506378ed5d1f9060240160206040518083038186803b15801561054357600080fd5b505afa158015610557573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057b9190611868565b905061059e73ffffffffffffffffffffffffffffffffffffffff8216338561125d565b6105a6611336565b6003546040517f17adb6ee0000000000000000000000000000000000000000000000000000000081523360048201526024810186905273ffffffffffffffffffffffffffffffffffffffff909116906317adb6ee90604401600060405180830381600087803b15801561061857600080fd5b505af115801561062c573d6000803e3d6000fd5b505060405185815286925030915033907fa8c1f92a8228d8f30d30e0539f7256c2847eaf35775bdc0a5a9c0a5a066f31d3906020015b60405180910390a4505060016000555050565b600260005414156106e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102ae565b600260005560045473ffffffffffffffffffffffffffffffffffffffff163314610768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f00000000000000000000000000000000000000000060448201526064016102ae565b600154604080517f081e3eda000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff169163081e3eda916004808301926020929190829003018186803b1580156107d357600080fd5b505afa1580156107e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080b919061184f565b9050808210610876576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f506f6f6c206973206e6f7420657869737400000000000000000000000000000060448201526064016102ae565b6001546040517f5312ea8e0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff90911690635312ea8e90602401600060405180830381600087803b1580156108e257600080fd5b505af11580156108f6573d6000803e3d6000fd5b50506001546040517f78ed5d1f000000000000000000000000000000000000000000000000000000008152600481018690526000935073ffffffffffffffffffffffffffffffffffffffff90911691506378ed5d1f9060240160206040518083038186803b15801561096757600080fd5b505afa15801561097b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099f9190611868565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152909150610a6390339073ffffffffffffffffffffffffffffffffffffffff8416906370a082319060240160206040518083038186803b158015610a0d57600080fd5b505afa158015610a21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a45919061184f565b73ffffffffffffffffffffffffffffffffffffffff8416919061125d565b610a6b611336565b6003546040517f17adb6ee0000000000000000000000000000000000000000000000000000000081523360048201526024810185905273ffffffffffffffffffffffffffffffffffffffff909116906317adb6ee90604401600060405180830381600087803b158015610add57600080fd5b505af1158015610af1573d6000803e3d6000fd5b505060405185925030915033907f238154946c0c149f8f44d71bfa79cf891af27a2567d540447b44c7c532529e3290600090a45050600160005550565b60026000541415610b9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102ae565b600260005560045473ffffffffffffffffffffffffffffffffffffffff163314610c21576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f00000000000000000000000000000000000000000060448201526064016102ae565b600154604080517f081e3eda000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff169163081e3eda916004808301926020929190829003018186803b158015610c8c57600080fd5b505afa158015610ca0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc4919061184f565b9050808310610d2f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f506f6f6c206973206e6f7420657869737400000000000000000000000000000060448201526064016102ae565b6001546040517f78ed5d1f0000000000000000000000000000000000000000000000000000000081526004810185905260009173ffffffffffffffffffffffffffffffffffffffff16906378ed5d1f9060240160206040518083038186803b158015610d9a57600080fd5b505afa158015610dae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd29190611868565b9050610df673ffffffffffffffffffffffffffffffffffffffff8216333086611407565b73ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604090205460ff16610f3e576001546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60248201529082169063095ea7b390604401602060405180830381600087803b158015610eb657600080fd5b505af1158015610eca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eee9190611885565b5073ffffffffffffffffffffffffffffffffffffffff8116600090815260056020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555b6001546040517fe2bbb158000000000000000000000000000000000000000000000000000000008152600481018690526024810185905273ffffffffffffffffffffffffffffffffffffffff9091169063e2bbb15890604401600060405180830381600087803b158015610fb157600080fd5b505af1158015610fc5573d6000803e3d6000fd5b50505050610fd1611336565b6003546040517f17adb6ee0000000000000000000000000000000000000000000000000000000081523360048201526024810186905273ffffffffffffffffffffffffffffffffffffffff909116906317adb6ee90604401600060405180830381600087803b15801561104357600080fd5b505af1158015611057573d6000803e3d6000fd5b505060405185815286925030915033907f138d30356a982952b65b72a90f5ee823874132ec8dd8b2fa5c42499228670fa690602001610662565b60045474010000000000000000000000000000000000000000900460ff1615611116576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f7065726174696f6e733a20416c726561647920696e697469616c697a65640060448201526064016102ae565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146111b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4f7065726174696f6e733a204e6f7420666163746f727900000000000000000060448201526064016102ae565b6004805473ffffffffffffffffffffffffffffffffffffffff9586167fffffffffffffffffffffff0000000000000000000000000000000000000000009091161774010000000000000000000000000000000000000000179055600380549385167fffffffffffffffffffffffff0000000000000000000000000000000000000000948516179055600180549285169284169290921790915560028054919093169116179055565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526113319084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261146b565b505050565b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b1580156113a057600080fd5b505afa1580156113b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d8919061184f565b90508015611404576002546114049073ffffffffffffffffffffffffffffffffffffffff16338361125d565b50565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526114659085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016112af565b50505050565b60006114cd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166115779092919063ffffffff16565b80519091501561133157808060200190518101906114eb9190611885565b611331576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102ae565b60606115868484600085611590565b90505b9392505050565b606082471015611622576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102ae565b73ffffffffffffffffffffffffffffffffffffffff85163b6116a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102ae565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116c991906118d3565b60006040518083038185875af1925050503d8060008114611706576040519150601f19603f3d011682016040523d82523d6000602084013e61170b565b606091505b509150915061171b828286611726565b979650505050505050565b60608315611735575081611589565b8251156117455782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ae91906118ef565b6000806040838503121561178c57600080fd5b50508035926020909101359150565b6000602082840312156117ad57600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff8116811461140457600080fd5b600080600080608085870312156117ec57600080fd5b84356117f7816117b4565b93506020850135611807816117b4565b92506040850135611817816117b4565b91506060850135611827816117b4565b939692955090935050565b60006020828403121561184457600080fd5b8135611589816117b4565b60006020828403121561186157600080fd5b5051919050565b60006020828403121561187a57600080fd5b8151611589816117b4565b60006020828403121561189757600080fd5b8151801515811461158957600080fd5b60005b838110156118c25781810151838201526020016118aa565b838111156114655750506000910152565b600082516118e58184602087016118a7565b9190910192915050565b602081526000825180602084015261190e8160408501602087016118a7565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220e70d5f488fede8bcea3448b1f69c2602ddbe8f8208f062efe08b5be8e1e195b664736f6c63430008090033a264697066735822122015a0d73c697af9c30b30aeef3157bd27281dfbaf5d1508362ce946494d3c810864736f6c6343000809003300000000000000000000000066dabd149ef44b6147f62e485506f84410edc0eb000000000000000000000000349bf392d62c0417626547c536b2f9d9a42e5c4d000000000000000000000000eb3c930c1e0d3434ff917ffd77aa813e7d79ae39
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063cb528b5211610050578063cb528b5214610107578063d5f3e96b1461012e578063f9d254371461015557600080fd5b806311a5f6bb14610077578063803f18dc146100815780638904bf2f146100e0575b600080fd5b61007f61018b565b005b6100b761008f3660046105c0565b60006020819052908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6100b77f000000000000000000000000eb3c930c1e0d3434ff917ffd77aa813e7d79ae3981565b6100b77f000000000000000000000000349bf392d62c0417626547c536b2f9d9a42e5c4d81565b6100b77f00000000000000000000000066dabd149ef44b6147f62e485506f84410edc0eb81565b6100b76101633660046105c0565b60016020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b3360009081526020819052604090205473ffffffffffffffffffffffffffffffffffffffff1615610242576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f5468652063757272656e74207573657220616c7265616479206861732061207060448201527f726f78790000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b600060405180602001610254906105b3565b8181037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09081018352601f909101166040818152426020830152439082015233606090811b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016908201529091506000906074016040516020818303038152906040528051906020012090506000818351602085016000f573ffffffffffffffffffffffffffffffffffffffff808216600090815260016020526040902054919250161561037e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f50726f787920616c7265616479206578697374730000000000000000000000006044820152606401610239565b33600081815260208181526040808320805473ffffffffffffffffffffffffffffffffffffffff8781167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316811790935582865260019094529382902080549094168517909355517ff8c8765e00000000000000000000000000000000000000000000000000000000815260048101939093527f00000000000000000000000066dabd149ef44b6147f62e485506f84410edc0eb811660248401527f000000000000000000000000349bf392d62c0417626547c536b2f9d9a42e5c4d811660448401527f000000000000000000000000eb3c930c1e0d3434ff917ffd77aa813e7d79ae391660648301529063f8c8765e90608401600060405180830381600087803b1580156104ae57600080fd5b505af11580156104c2573d6000803e3d6000fd5b50506040517fa9d4630c00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff84811660248301527f00000000000000000000000066dabd149ef44b6147f62e485506f84410edc0eb16925063a9d4630c9150604401600060405180830381600087803b15801561055557600080fd5b505af1158015610569573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff841692507ff85bdc0fe80e0f017a407160865fb16be386816f96c7d7fb8a034105abb7c8e59150600090a2505050565b6119b2806105fe83390190565b6000602082840312156105d257600080fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146105f657600080fd5b939250505056fe60a060405234801561001057600080fd5b5060016000553360805260805161197661003c60003960008181610167015261112e01526119766000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c80638904bf2f11610081578063f851a4401161005b578063f851a440146101ef578063f8c8765e1461020f578063fbcdbd0e1461022257600080fd5b80638904bf2f1461019c578063cb528b52146101bc578063e2bbb158146101dc57600080fd5b8063441a3e70116100b2578063441a3e701461014d57806351035703146101625780635312ea8e1461018957600080fd5b80630643aae1146100ce578063392e53cd14610118575b600080fd5b6003546100ee9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b60045461013d9074010000000000000000000000000000000000000000900460ff1681565b604051901515815260200161010f565b61016061015b366004611779565b610245565b005b6100ee7f000000000000000000000000000000000000000000000000000000000000000081565b61016061019736600461179b565b610675565b6002546100ee9073ffffffffffffffffffffffffffffffffffffffff1681565b6001546100ee9073ffffffffffffffffffffffffffffffffffffffff1681565b6101606101ea366004611779565b610b2e565b6004546100ee9073ffffffffffffffffffffffffffffffffffffffff1681565b61016061021d3660046117d6565b611091565b61013d610230366004611832565b60056020526000908152604090205460ff1681565b600260005414156102b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260005560045473ffffffffffffffffffffffffffffffffffffffff16331461033d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f00000000000000000000000000000000000000000060448201526064016102ae565b600154604080517f081e3eda000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff169163081e3eda916004808301926020929190829003018186803b1580156103a857600080fd5b505afa1580156103bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e0919061184f565b905080831061044b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f506f6f6c206973206e6f7420657869737400000000000000000000000000000060448201526064016102ae565b6001546040517f441a3e70000000000000000000000000000000000000000000000000000000008152600481018590526024810184905273ffffffffffffffffffffffffffffffffffffffff9091169063441a3e7090604401600060405180830381600087803b1580156104be57600080fd5b505af11580156104d2573d6000803e3d6000fd5b50506001546040517f78ed5d1f000000000000000000000000000000000000000000000000000000008152600481018790526000935073ffffffffffffffffffffffffffffffffffffffff90911691506378ed5d1f9060240160206040518083038186803b15801561054357600080fd5b505afa158015610557573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057b9190611868565b905061059e73ffffffffffffffffffffffffffffffffffffffff8216338561125d565b6105a6611336565b6003546040517f17adb6ee0000000000000000000000000000000000000000000000000000000081523360048201526024810186905273ffffffffffffffffffffffffffffffffffffffff909116906317adb6ee90604401600060405180830381600087803b15801561061857600080fd5b505af115801561062c573d6000803e3d6000fd5b505060405185815286925030915033907fa8c1f92a8228d8f30d30e0539f7256c2847eaf35775bdc0a5a9c0a5a066f31d3906020015b60405180910390a4505060016000555050565b600260005414156106e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102ae565b600260005560045473ffffffffffffffffffffffffffffffffffffffff163314610768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f00000000000000000000000000000000000000000060448201526064016102ae565b600154604080517f081e3eda000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff169163081e3eda916004808301926020929190829003018186803b1580156107d357600080fd5b505afa1580156107e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080b919061184f565b9050808210610876576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f506f6f6c206973206e6f7420657869737400000000000000000000000000000060448201526064016102ae565b6001546040517f5312ea8e0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff90911690635312ea8e90602401600060405180830381600087803b1580156108e257600080fd5b505af11580156108f6573d6000803e3d6000fd5b50506001546040517f78ed5d1f000000000000000000000000000000000000000000000000000000008152600481018690526000935073ffffffffffffffffffffffffffffffffffffffff90911691506378ed5d1f9060240160206040518083038186803b15801561096757600080fd5b505afa15801561097b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099f9190611868565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152909150610a6390339073ffffffffffffffffffffffffffffffffffffffff8416906370a082319060240160206040518083038186803b158015610a0d57600080fd5b505afa158015610a21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a45919061184f565b73ffffffffffffffffffffffffffffffffffffffff8416919061125d565b610a6b611336565b6003546040517f17adb6ee0000000000000000000000000000000000000000000000000000000081523360048201526024810185905273ffffffffffffffffffffffffffffffffffffffff909116906317adb6ee90604401600060405180830381600087803b158015610add57600080fd5b505af1158015610af1573d6000803e3d6000fd5b505060405185925030915033907f238154946c0c149f8f44d71bfa79cf891af27a2567d540447b44c7c532529e3290600090a45050600160005550565b60026000541415610b9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102ae565b600260005560045473ffffffffffffffffffffffffffffffffffffffff163314610c21576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f61646d696e3a207775743f00000000000000000000000000000000000000000060448201526064016102ae565b600154604080517f081e3eda000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff169163081e3eda916004808301926020929190829003018186803b158015610c8c57600080fd5b505afa158015610ca0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc4919061184f565b9050808310610d2f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f506f6f6c206973206e6f7420657869737400000000000000000000000000000060448201526064016102ae565b6001546040517f78ed5d1f0000000000000000000000000000000000000000000000000000000081526004810185905260009173ffffffffffffffffffffffffffffffffffffffff16906378ed5d1f9060240160206040518083038186803b158015610d9a57600080fd5b505afa158015610dae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd29190611868565b9050610df673ffffffffffffffffffffffffffffffffffffffff8216333086611407565b73ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604090205460ff16610f3e576001546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60248201529082169063095ea7b390604401602060405180830381600087803b158015610eb657600080fd5b505af1158015610eca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eee9190611885565b5073ffffffffffffffffffffffffffffffffffffffff8116600090815260056020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555b6001546040517fe2bbb158000000000000000000000000000000000000000000000000000000008152600481018690526024810185905273ffffffffffffffffffffffffffffffffffffffff9091169063e2bbb15890604401600060405180830381600087803b158015610fb157600080fd5b505af1158015610fc5573d6000803e3d6000fd5b50505050610fd1611336565b6003546040517f17adb6ee0000000000000000000000000000000000000000000000000000000081523360048201526024810186905273ffffffffffffffffffffffffffffffffffffffff909116906317adb6ee90604401600060405180830381600087803b15801561104357600080fd5b505af1158015611057573d6000803e3d6000fd5b505060405185815286925030915033907f138d30356a982952b65b72a90f5ee823874132ec8dd8b2fa5c42499228670fa690602001610662565b60045474010000000000000000000000000000000000000000900460ff1615611116576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f7065726174696f6e733a20416c726561647920696e697469616c697a65640060448201526064016102ae565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146111b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4f7065726174696f6e733a204e6f7420666163746f727900000000000000000060448201526064016102ae565b6004805473ffffffffffffffffffffffffffffffffffffffff9586167fffffffffffffffffffffff0000000000000000000000000000000000000000009091161774010000000000000000000000000000000000000000179055600380549385167fffffffffffffffffffffffff0000000000000000000000000000000000000000948516179055600180549285169284169290921790915560028054919093169116179055565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526113319084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261146b565b505050565b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b1580156113a057600080fd5b505afa1580156113b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d8919061184f565b90508015611404576002546114049073ffffffffffffffffffffffffffffffffffffffff16338361125d565b50565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526114659085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016112af565b50505050565b60006114cd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166115779092919063ffffffff16565b80519091501561133157808060200190518101906114eb9190611885565b611331576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102ae565b60606115868484600085611590565b90505b9392505050565b606082471015611622576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102ae565b73ffffffffffffffffffffffffffffffffffffffff85163b6116a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102ae565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116c991906118d3565b60006040518083038185875af1925050503d8060008114611706576040519150601f19603f3d011682016040523d82523d6000602084013e61170b565b606091505b509150915061171b828286611726565b979650505050505050565b60608315611735575081611589565b8251156117455782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ae91906118ef565b6000806040838503121561178c57600080fd5b50508035926020909101359150565b6000602082840312156117ad57600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff8116811461140457600080fd5b600080600080608085870312156117ec57600080fd5b84356117f7816117b4565b93506020850135611807816117b4565b92506040850135611817816117b4565b91506060850135611827816117b4565b939692955090935050565b60006020828403121561184457600080fd5b8135611589816117b4565b60006020828403121561186157600080fd5b5051919050565b60006020828403121561187a57600080fd5b8151611589816117b4565b60006020828403121561189757600080fd5b8151801515811461158957600080fd5b60005b838110156118c25781810151838201526020016118aa565b838111156114655750506000910152565b600082516118e58184602087016118a7565b9190910192915050565b602081526000825180602084015261190e8160408501602087016118a7565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220e70d5f488fede8bcea3448b1f69c2602ddbe8f8208f062efe08b5be8e1e195b664736f6c63430008090033a264697066735822122015a0d73c697af9c30b30aeef3157bd27281dfbaf5d1508362ce946494d3c810864736f6c63430008090033