Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- StakeFXVaultV4
- Optimization enabled
- true
- Compiler version
- v0.8.18+commit.87f61d96
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2025-02-10T08:23:27.597231Z
contracts/StakeFXVaultV4.sol
// SPDX-License-Identifier: MITpragma solidity ^0.8.18;import {IERC20Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";import {SafeERC20Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";import {MathUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol";import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";import {ReentrancyGuardUpgradeable} from "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";import {IVestedFX} from "./interfaces/IVestedFX.sol";import {IRewardDistributor} from "./interfaces/IRewardDistributor.sol";import {IWFX} from "./interfaces/IWFX.sol";import {BaseVault} from "./vaults/BaseVault.sol";import {PrecompileStaking} from "./imp/PrecompileStaking.sol";/** V4 to support switching FX to PundiAI token.* Add event CompoundWithFees*/contract StakeFXVaultV4 isInitializable,UUPSUpgradeable,PrecompileStaking,ReentrancyGuardUpgradeable,BaseVault{using SafeERC20Upgradeable for IERC20Upgradeable;using MathUpgradeable for uint256;uint256 internal constant BIPS_DIVISOR = 10000;uint256 internal constant PRECISION = 1e30;address constant WFX = 0x80b5a32E4F032B2a058b4F29EC95EEfEEB87aDcd; // Token name is renamed to WPundiAIFX, WFX mainnet: 0x80b5a32E4F032B2a058b4F29EC95EEfEEB87aDcd; WFX testnet: 0x3452e23F9c4cC62c70B7ADAd699B264AF3549C19uint256 public pendingFxReward; // FX delegation rewards inside the contract pending for compounduint256 public feeOnReward; // Compound reward protocol feeuint256 public feeOnCompounder; // Compound reward compounder feeuint256 public feeOnWithdrawal; // Withdrawal feeaddress public vestedFX; // Contract that stored user's withdrawal infoaddress public feeTreasury; // Contract that keep compound reward fee
contracts/interfaces/IPrecompileStaking.sol
// SPDX-License-Identifier: UNLICENSEDpragma solidity ^0.8.10;/*** @title IPrecompileStaking** @dev Interface to interact to network precompile staking contract functions.*/interface IPrecompileStaking {function delegate(string memory _val) external payable returns (uint256, uint256);function undelegate(string memory _val, uint256 _shares) external returns (uint256, uint256, uint256);function withdraw(string memory _val) external returns (uint256);function transferFromShares(string memory _val, address _from, address _to, uint256 _shares) external returns (uint256, uint256);function delegation(string memory _val, address _del) external view returns (uint256, uint256);function delegationRewards(string memory _val, address _del) external view returns (uint256);function delegateV2(string memory _val,uint256 _amount) external payable returns (bool _result);function undelegateV2(string memory _val,uint256 _amount) external returns (bool _result);function redelegateV2(string memory _valSrc,string memory _valDst,uint256 _amount) external returns (bool _result);}
@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.pragma solidity ^0.8.0;/*** @dev Library for reading and writing primitive types to specific storage slots.** Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.* This library helps with reading and writing to such slots without the need for inline assembly.** The functions in this library return Slot structs that contain a `value` member that can be used to read or write.** Example usage to set ERC1967 implementation slot:* ```solidity* contract ERC1967 {* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;** function _getImplementation() internal view returns (address) {* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;* }** function _setImplementation(address newImplementation) internal {* require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;* }* }* ```** _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._* _Available since v4.9 for `string`, `bytes`._*/library StorageSlotUpgradeable {struct AddressSlot {address value;}struct BooleanSlot {bool value;}
@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)pragma solidity ^0.8.2;import "../../utils/AddressUpgradeable.sol";/*** @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.** The initialization functions use a version number. Once a version number is used, it is consumed and cannot be* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in* case an upgrade adds a module that needs to be initialized.** For example:** [.hljs-theme-light.nopadding]* ```solidity* contract MyToken is ERC20Upgradeable {* function initialize() initializer public {* __ERC20_init("MyToken", "MTK");* }* }** contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {* function initializeV2() reinitializer(2) public {* __ERC20Permit_init("MyToken");* }* }* ```** TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.** CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.** [CAUTION]
@openzeppelin/contracts-upgradeable/utils/math/SignedMathUpgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)pragma solidity ^0.8.0;/*** @dev Standard signed math utilities missing in the Solidity language.*/library SignedMathUpgradeable {/*** @dev Returns the largest of two signed numbers.*/function max(int256 a, int256 b) internal pure returns (int256) {return a > b ? a : b;}/*** @dev Returns the smallest of two signed numbers.*/function min(int256 a, int256 b) internal pure returns (int256) {return a < b ? a : b;}/*** @dev Returns the average of two signed numbers without overflow.* The result is rounded towards zero.*/function average(int256 a, int256 b) internal pure returns (int256) {// Formula from the book "Hacker's Delight"int256 x = (a & b) + ((a ^ b) >> 1);return x + (int256(uint256(x) >> 255) & (a ^ b));}/*** @dev Returns the absolute unsigned value of a signed value.*/function abs(int256 n) internal pure returns (uint256) {unchecked {// must be unchecked in order to support `n = type(int256).min`return uint256(n >= 0 ? n : -n);}
@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)pragma solidity ^0.8.2;import "../beacon/IBeaconUpgradeable.sol";import "../../interfaces/IERC1967Upgradeable.sol";import "../../interfaces/draft-IERC1822Upgradeable.sol";import "../../utils/AddressUpgradeable.sol";import "../../utils/StorageSlotUpgradeable.sol";import "../utils/Initializable.sol";/*** @dev This abstract contract provides getters and event emitting update functions for* https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.** _Available since v4.1._*/abstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {function __ERC1967Upgrade_init() internal onlyInitializing {}function __ERC1967Upgrade_init_unchained() internal onlyInitializing {}// This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;/*** @dev Storage slot with the address of the current implementation.* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is* validated in the constructor.*/bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;/*** @dev Returns the current implementation address.*/function _getImplementation() internal view returns (address) {return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;}
@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)pragma solidity ^0.8.0;import "../../interfaces/draft-IERC1822Upgradeable.sol";import "../ERC1967/ERC1967UpgradeUpgradeable.sol";import "./Initializable.sol";/*** @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an* {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.** A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is* reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing* `UUPSUpgradeable` with a custom implementation of upgrades.** The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.** _Available since v4.1._*/abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {function __UUPSUpgradeable_init() internal onlyInitializing {}function __UUPSUpgradeable_init_unchained() internal onlyInitializing {}/// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignmentaddress private immutable __self = address(this);/*** @dev Check that the execution is being performed through a delegatecall call and that the execution context is* a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case* for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a* function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to* fail.*/modifier onlyProxy() {require(address(this) != __self, "Function must be called through delegatecall");require(_getImplementation() == __self, "Function must be called through active proxy");_;
@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)pragma solidity ^0.8.1;/*** @dev Collection of functions related to the address type*/library AddressUpgradeable {/*** @dev Returns true if `account` is a contract.** [IMPORTANT]* ====* It is unsafe to assume that an address for which this function returns* false is an externally-owned account (EOA) and not a contract.** Among others, `isContract` will return false for the following* types of addresses:** - an externally-owned account* - a contract in construction* - an address where a contract will be created* - an address where a contract lived, but was destroyed** Furthermore, `isContract` will also return true if the target contract within* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,* which only has an effect at the end of a transaction.* ====** [IMPORTANT]* ====* You shouldn't rely on `isContract` to protect against flash loan attacks!** Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract* constructor.* ====*/function isContract(address account) internal view returns (bool) {// This method relies on extcodesize/address.code.length, which returns 0
contracts/interfaces/IWFX.sol
// SPDX-License-Identifier: Apache-2.0pragma solidity ^0.8.0;interface IWFX {function deposit() external payable;function withdraw(address payable to, uint256 value) external;function transferFrom(address from, address to, uint256 amount) external;}
@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)pragma solidity ^0.8.0;/*** @dev External interface of AccessControl declared to support ERC165 detection.*/interface IAccessControlUpgradeable {/*** @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`** `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite* {RoleAdminChanged} not being emitted signaling this.** _Available since v3.1._*/event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);/*** @dev Emitted when `account` is granted `role`.** `sender` is the account that originated the contract call, an admin role* bearer except when using {AccessControl-_setupRole}.*/event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);/*** @dev Emitted when `account` is revoked `role`.** `sender` is the account that originated the contract call:* - if using `revokeRole`, it is the admin role bearer* - if using `renounceRole`, it is the role bearer (i.e. `account`)*/event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);/*** @dev Returns `true` if `account` has been granted `role`.*/function hasRole(bytes32 role, address account) external view returns (bool);
@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)pragma solidity ^0.8.0;/*** @dev This is the interface that {BeaconProxy} expects of its beacon.*/interface IBeaconUpgradeable {/*** @dev Must return an address that can be used as a delegate call target.** {BeaconProxy} will check that this address is a contract.*/function implementation() external view returns (address);}
@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)pragma solidity ^0.8.0;import "./math/MathUpgradeable.sol";import "./math/SignedMathUpgradeable.sol";/*** @dev String operations.*/library StringsUpgradeable {bytes16 private constant _SYMBOLS = "0123456789abcdef";uint8 private constant _ADDRESS_LENGTH = 20;/*** @dev Converts a `uint256` to its ASCII `string` decimal representation.*/function toString(uint256 value) internal pure returns (string memory) {unchecked {uint256 length = MathUpgradeable.log10(value) + 1;string memory buffer = new string(length);uint256 ptr;/// @solidity memory-safe-assemblyassembly {ptr := add(buffer, add(32, length))}while (true) {ptr--;/// @solidity memory-safe-assemblyassembly {mstore8(ptr, byte(mod(value, 10), _SYMBOLS))}value /= 10;if (value == 0) break;}return buffer;}}/**
@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)pragma solidity ^0.8.0;import "../IERC20Upgradeable.sol";/*** @dev Interface for the optional metadata functions from the ERC20 standard.** _Available since v4.1._*/interface IERC20MetadataUpgradeable is IERC20Upgradeable {/*** @dev Returns the name of the token.*/function name() external view returns (string memory);/*** @dev Returns the symbol of the token.*/function symbol() external view returns (string memory);/*** @dev Returns the decimals places of the token.*/function decimals() external view returns (uint8);}
@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)pragma solidity ^0.8.0;/*** @dev Interface of the ERC165 standard, as defined in the* https://eips.ethereum.org/EIPS/eip-165[EIP].** Implementers can declare support of contract interfaces, which can then be* queried by others ({ERC165Checker}).** For an implementation, see {ERC165}.*/interface IERC165Upgradeable {/*** @dev Returns true if this contract implements the interface defined by* `interfaceId`. See the corresponding* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]* to learn more about how these ids are created.** This function call must use less than 30 000 gas.*/function supportsInterface(bytes4 interfaceId) external view returns (bool);}
@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)pragma solidity ^0.8.0;/*** @dev Interface of the ERC20 standard as defined in the EIP.*/interface IERC20Upgradeable {/*** @dev Emitted when `value` tokens are moved from one account (`from`) to* another (`to`).** Note that `value` may be zero.*/event Transfer(address indexed from, address indexed to, uint256 value);/*** @dev Emitted when the allowance of a `spender` for an `owner` is set by* a call to {approve}. `value` is the new allowance.*/event Approval(address indexed owner, address indexed spender, uint256 value);/*** @dev Returns the amount of tokens in existence.*/function totalSupply() external view returns (uint256);/*** @dev Returns the amount of tokens owned by `account`.*/function balanceOf(address account) external view returns (uint256);/*** @dev Moves `amount` tokens from the caller's account to `to`.** Returns a boolean value indicating whether the operation succeeded.** Emits a {Transfer} event.*/function transfer(address to, uint256 amount) external returns (bool);
@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)pragma solidity ^0.8.0;import "../utils/ContextUpgradeable.sol";import "../proxy/utils/Initializable.sol";/*** @dev Contract module which allows children to implement an emergency stop* mechanism that can be triggered by an authorized account.** This module is used through inheritance. It will make available the* modifiers `whenNotPaused` and `whenPaused`, which can be applied to* the functions of your contract. Note that they will not be pausable by* simply including this module, only once the modifiers are put in place.*/abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {/*** @dev Emitted when the pause is triggered by `account`.*/event Paused(address account);/*** @dev Emitted when the pause is lifted by `account`.*/event Unpaused(address account);bool private _paused;/*** @dev Initializes the contract in unpaused state.*/function __Pausable_init() internal onlyInitializing {__Pausable_init_unchained();}function __Pausable_init_unchained() internal onlyInitializing {_paused = false;}
@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)pragma solidity ^0.8.0;import "./IERC20Upgradeable.sol";import "./extensions/IERC20MetadataUpgradeable.sol";import "../../utils/ContextUpgradeable.sol";import "../../proxy/utils/Initializable.sol";/*** @dev Implementation of the {IERC20} interface.** This implementation is agnostic to the way tokens are created. This means* that a supply mechanism has to be added in a derived contract using {_mint}.* For a generic mechanism see {ERC20PresetMinterPauser}.** TIP: For a detailed writeup see our guide* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How* to implement supply mechanisms].** The default value of {decimals} is 18. To change this, you should override* this function so it returns a different value.** We have followed general OpenZeppelin Contracts guidelines: functions revert* instead returning `false` on failure. This behavior is nonetheless* conventional and does not conflict with the expectations of ERC20* applications.** Additionally, an {Approval} event is emitted on calls to {transferFrom}.* This allows applications to reconstruct the allowance for all accounts just* by listening to said events. Other implementations of the EIP may not emit* these events, as it isn't required by the specification.** Finally, the non-standard {decreaseAllowance} and {increaseAllowance}* functions have been added to mitigate the well-known issues around setting* allowances. See {IERC20-approve}.*/contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {mapping(address => uint256) private _balances;
contracts/interfaces/IVestedFX.sol
// SPDX-License-Identifier: Apache-2.0pragma solidity ^0.8.0;interface IVestedFX {struct VestingSchedule {uint64 startTime;uint64 endTime;uint256 quantity;uint256 vestedQuantity;}function lockWithEndTime(address account, uint256 quantity, uint256 endTime) external;function getVestingSchedules(address account) external view returns (VestingSchedule[] memory);function accountEscrowedBalance(address account) external view returns (uint256);function accountVestedBalance(address account) external view returns (uint256);}
@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)pragma solidity ^0.8.0;import "../IERC20Upgradeable.sol";import "../extensions/IERC20PermitUpgradeable.sol";import "../../../utils/AddressUpgradeable.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 SafeERC20Upgradeable {using AddressUpgradeable for address;/*** @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,* non-reverting calls are assumed to be successful.*/function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal {_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));}/*** @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.*/function safeTransferFrom(IERC20Upgradeable 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.*
@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)pragma solidity ^0.8.0;import "../proxy/utils/Initializable.sol";/*** @dev Provides information about the current execution context, including the* sender of the transaction and its data. While these are generally available* via msg.sender and msg.data, they should not be accessed in such a direct* manner, since when dealing with meta-transactions the account sending and* paying for execution may not be the actual sender (as far as an application* is concerned).** This contract is only required for intermediate, library-like contracts.*/abstract contract ContextUpgradeable is Initializable {function __Context_init() internal onlyInitializing {}function __Context_init_unchained() internal onlyInitializing {}function _msgSender() internal view virtual returns (address) {return msg.sender;}function _msgData() internal view virtual returns (bytes calldata) {return msg.data;}/*** @dev This empty reserved space is put in place to allow future versions to add new* variables without shifting down storage in the inheritance chain.* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps*/uint256[50] private __gap;}
@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)pragma solidity ^0.8.0;/*** @dev Standard math utilities missing in the Solidity language.*/library MathUpgradeable {enum Rounding {Down, // Toward negative infinityUp, // Toward infinityZero // Toward zero}/*** @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.return (a & b) + (a ^ b) / 2;}/*** @dev Returns the ceiling of the division of two numbers.*
@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)pragma solidity ^0.8.0;/*** @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified* proxy whose upgrades are fully controlled by the current implementation.*/interface IERC1822ProxiableUpgradeable {/*** @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation* address.** IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks* bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this* function revert if invoked through a proxy.*/function proxiableUUID() external view returns (bytes32);}
contracts/libraries/Decode.sol
// SPDX-License-Identifier: MITpragma solidity ^0.8.18;library Decode {function delegate(bytes memory data) internal pure returns (uint256, uint256) {(uint256 shares, uint256 reward) = abi.decode(data, (uint256, uint256));return (shares, reward);}function undelegate(bytes memory data) internal pure returns (uint256, uint256, uint256) {(uint256 amount, uint256 reward, uint256 endTime) = abi.decode(data,(uint256, uint256, uint256));return (amount, reward, endTime);}function redelegate(bytes memory data) internal pure returns (uint256, uint256, uint256) {(uint256 _amount, uint256 _reward, uint256 _completionTime) = abi.decode(data, (uint256, uint256, uint256));return (_amount, _reward, _completionTime);}function delegateV2(bytes memory data) internal pure returns (bool) {(bool _result) = abi.decode(data, (bool));return (_result);}function undelegateV2(bytes memory data) internal pure returns (bool) {(bool _result) = abi.decode(data,(bool));
contracts/interfaces/IRewardDistributor.sol
// SPDX-License-Identifier: MITpragma solidity ^0.8.18;interface IRewardDistributor {function rewardToken() external view returns (address);function tokensPerInterval() external view returns (uint256);function pendingRewards() external view returns (uint256);function distribute() external returns (uint256);}
contracts/vaults/BaseVault.sol
// SPDX-License-Identifier: UNLICENSEDpragma solidity ^0.8.10;import {PausableUpgradeable} from "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";import {ERC20Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";import {IERC20MetadataUpgradeable, IERC20Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol";import {ERC4626Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC4626Upgradeable.sol";import {MathUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol";import {Governable} from "../common/Governable.sol";abstract contract BaseVault is Governable, PausableUpgradeable, ERC4626Upgradeable {using MathUpgradeable for uint256;function __BaseVaultInit(address _asset, string memory _name, string memory _symbol, address _owner, address _governor) internal{__ERC4626_init(IERC20MetadataUpgradeable(_asset));__ERC20_init(_name, _symbol);__Pausable_init();__AccessControl_init();__Governable_init(_owner, _governor);}// ============================= Revert functions ================================ ///*** @dev See {openzeppelin-IERC4626-deposit}.*/function deposit(uint256 , address )publicoverridereturns (uint256){revert("disabled");}/*** @dev See {openzeppelin-IERC4626-mint}.*/function mint(uint256 , address )public
@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)pragma solidity ^0.8.0;import "../proxy/utils/Initializable.sol";/*** @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 ReentrancyGuardUpgradeable is Initializable {// 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;function __ReentrancyGuard_init() internal onlyInitializing {__ReentrancyGuard_init_unchained();
@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)pragma solidity ^0.8.0;import "./IAccessControlUpgradeable.sol";import "../utils/ContextUpgradeable.sol";import "../utils/StringsUpgradeable.sol";import "../utils/introspection/ERC165Upgradeable.sol";import "../proxy/utils/Initializable.sol";/*** @dev Contract module that allows children to implement role-based access* control mechanisms. This is a lightweight version that doesn't allow enumerating role* members except through off-chain means by accessing the contract event logs. Some* applications may benefit from on-chain enumerability, for those cases see* {AccessControlEnumerable}.** Roles are referred to by their `bytes32` identifier. These should be exposed* in the external API and be unique. The best way to achieve this is by* using `public constant` hash digests:** ```solidity* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");* ```** Roles can be used to represent a set of permissions. To restrict access to a* function call, use {hasRole}:** ```solidity* function foo() public {* require(hasRole(MY_ROLE, msg.sender));* ...* }* ```** Roles can be granted and revoked dynamically via the {grantRole} and* {revokeRole} functions. Each role has an associated admin role, and only* accounts that have a role's admin role can call {grantRole} and {revokeRole}.** By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
@openzeppelin/contracts-upgradeable/interfaces/IERC4626Upgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC4626.sol)pragma solidity ^0.8.0;import "../token/ERC20/IERC20Upgradeable.sol";import "../token/ERC20/extensions/IERC20MetadataUpgradeable.sol";/*** @dev Interface of the ERC4626 "Tokenized Vault Standard", as defined in* https://eips.ethereum.org/EIPS/eip-4626[ERC-4626].** _Available since v4.7._*/interface IERC4626Upgradeable is IERC20Upgradeable, IERC20MetadataUpgradeable {event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares);event Withdraw(address indexed sender,address indexed receiver,address indexed owner,uint256 assets,uint256 shares);/*** @dev Returns the address of the underlying token used for the Vault for accounting, depositing, and withdrawing.** - MUST be an ERC-20 token contract.* - MUST NOT revert.*/function asset() external view returns (address assetTokenAddress);/*** @dev Returns the total amount of the underlying asset that is “managed” by Vault.** - SHOULD include any compounding that occurs from yield.* - MUST be inclusive of any fees that are charged against assets in the Vault.* - MUST NOT revert.*/function totalAssets() external view returns (uint256 totalManagedAssets);
contracts/common/Governable.sol
// SPDX-License-Identifier: MITpragma solidity ^0.8.10;import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";abstract contract Governable is AccessControlUpgradeable {bytes32 public constant OWNER_ROLE = bytes32("OWNER_ROLE");bytes32 public constant GOVERNOR_ROLE = bytes32("GOVERNOR_ROLE");bytes32 public constant OPERATOR_ROLE = bytes32("OPERATOR_ROLE"); // only contract addressfunction __Governable_init(address _owner, address _governor) internal {// Assign roles to the sender._grantRole(OWNER_ROLE, _owner);_grantRole(GOVERNOR_ROLE, _governor);// Set OWNER_ROLE as the admin of all roles._setRoleAdmin(OWNER_ROLE, OWNER_ROLE);_setRoleAdmin(GOVERNOR_ROLE, OWNER_ROLE);_setRoleAdmin(OPERATOR_ROLE, OWNER_ROLE);}/*** @dev This empty reserved space is put in place to allow future versions to add new* variables without shifting down storage in the inheritance chain.* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps*/uint256[49] private __gap;}
@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)pragma solidity ^0.8.0;/*** @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].** Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't* need to send a transaction, and thus is not required to hold Ether at all.*/interface IERC20PermitUpgradeable {/*** @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,* given ``owner``'s signed approval.** IMPORTANT: The same issues {IERC20-approve} has related to transaction* ordering also apply here.** Emits an {Approval} event.** Requirements:** - `spender` cannot be the zero address.* - `deadline` must be a timestamp in the future.* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`* over the EIP712-formatted function arguments.* - the signature must use ``owner``'s current nonce (see {nonces}).** For more information on the signature format, see the* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP* section].*/function permit(address owner,address spender,uint256 value,uint256 deadline,uint8 v,
@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC4626Upgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC4626.sol)pragma solidity ^0.8.0;import "../ERC20Upgradeable.sol";import "../utils/SafeERC20Upgradeable.sol";import "../../../interfaces/IERC4626Upgradeable.sol";import "../../../utils/math/MathUpgradeable.sol";import "../../../proxy/utils/Initializable.sol";/*** @dev Implementation of the ERC4626 "Tokenized Vault Standard" as defined in* https://eips.ethereum.org/EIPS/eip-4626[EIP-4626].** This extension allows the minting and burning of "shares" (represented using the ERC20 inheritance) in exchange for* underlying "assets" through standardized {deposit}, {mint}, {redeem} and {burn} workflows. This contract extends* the ERC20 standard. Any additional extensions included along it would affect the "shares" token represented by this* contract and not the "assets" token which is an independent contract.** [CAUTION]* ====* In empty (or nearly empty) ERC-4626 vaults, deposits are at high risk of being stolen through frontrunning* with a "donation" to the vault that inflates the price of a share. This is variously known as a donation or inflation* attack and is essentially a problem of slippage. Vault deployers can protect against this attack by making an initial* deposit of a non-trivial amount of the asset, such that price manipulation becomes infeasible. Withdrawals may* similarly be affected by slippage. Users can protect against this attack as well as unexpected slippage in general by* verifying the amount received is as expected, using a wrapper that performs these checks such as* https://github.com/fei-protocol/ERC4626#erc4626router-and-base[ERC4626Router].** Since v4.9, this implementation uses virtual assets and shares to mitigate that risk. The `_decimalsOffset()`* corresponds to an offset in the decimal representation between the underlying asset's decimals and the vault* decimals. This offset also determines the rate of virtual shares to virtual assets in the vault, which itself* determines the initial exchange rate. While not fully preventing the attack, analysis shows that the default offset* (0) makes it non-profitable, as a result of the value being captured by the virtual shares (out of the attacker's* donation) matching the attacker's expected gains. With a larger offset, the attack becomes orders of magnitude more* expensive than it is profitable. More details about the underlying math can be found* xref:erc4626.adoc#inflation-attack[here].** The drawback of this approach is that the virtual shares do capture (a very small) part of the value being accrued* to the vault. Also, if the vault experiences losses, the users try to exit the vault, the virtual shares and assets
contracts/libraries/Encode.sol
// SPDX-License-Identifier: MITpragma solidity ^0.8.18;library Encode {function delegate(string memory _validator) internal pure returns (bytes memory) {return abi.encodeWithSignature("delegate(string)", _validator);}function undelegate(string memory _validator,uint256 _shares) internal pure returns (bytes memory) {return abi.encodeWithSignature("undelegate(string,uint256)", _validator, _shares);}function redelegate(string memory _valSrc,string memory _valDst,uint256 _shares) internal pure returns (bytes memory) {return abi.encodeWithSignature("redelegate(string,string,uint256)", _valSrc, _valDst, _shares);}function delegateV2(string memory _validator,uint256 _amount) internal pure returns (bytes memory) {return abi.encodeWithSignature("delegate(string, uint256)", _validator, _amount);}function undelegateV2(string memory _validator,uint256 _amount) internal pure returns (bytes memory) {return abi.encodeWithSignature("undelegate(string,uint256)", _validator, _amount);}function redelegateV2(
contracts/imp/PrecompileStaking.sol
// SPDX-License-Identifier: UNLICENSEDpragma solidity ^0.8.10;import {Encode} from "../libraries/Encode.sol";import {Decode} from "../libraries/Decode.sol";import {IPrecompileStaking} from "../interfaces/IPrecompileStaking.sol";/*** @title PrecompileStaking** @dev Interface to interact to network precompile staking contract functions.*/abstract contract PrecompileStaking {address private constant _stakingAddress = address(0x0000000000000000000000000000000000001003);/**************************************** Precompile Staking Internal Functions ****************************************/function _delegate(string memory _val, uint256 _amount) internal returns (uint256, uint256) {(bool result, bytes memory data) = _stakingAddress.call{value: _amount}(Encode.delegate(_val));Decode.ok(result, data, "delegate failed");return Decode.delegate(data);}function _undelegate(string memory _val, uint256 _shares) internal returns (uint256, uint256, uint256) {(bool result, bytes memory data) = _stakingAddress.call(Encode.undelegate(_val, _shares));Decode.ok(result, data, "undelegate failed");return Decode.undelegate(data);}function _redelegate(string memory _valSrc, string memory _valDst, uint256 _shares) internal returns (uint256, uint256, uint256) {(bool result, bytes memory data) = _stakingAddress.call(Encode.redelegate(_valSrc, _valDst, _shares));Decode.ok(result, data, "redelegate failed");return Decode.redelegate(data);}function _delegateV2(string memory _val, uint256 _amount) internal returns (bool _result) {
@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)pragma solidity ^0.8.0;import "./IERC165Upgradeable.sol";import "../../proxy/utils/Initializable.sol";/*** @dev Implementation of the {IERC165} interface.** Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check* for the additional interface id that will be supported. For example:** ```solidity* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);* }* ```** Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.*/abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable {function __ERC165_init() internal onlyInitializing {}function __ERC165_init_unchained() internal onlyInitializing {}/*** @dev See {IERC165-supportsInterface}.*/function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {return interfaceId == type(IERC165Upgradeable).interfaceId;}/*** @dev This empty reserved space is put in place to allow future versions to add new* variables without shifting down storage in the inheritance chain.* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps*/uint256[50] private __gap;
@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)pragma solidity ^0.8.0;/*** @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.** _Available since v4.8.3._*/interface IERC1967Upgradeable {/*** @dev Emitted when the implementation is upgraded.*/event Upgraded(address indexed implementation);/*** @dev Emitted when the admin account has changed.*/event AdminChanged(address previousAdmin, address newAdmin);/*** @dev Emitted when the beacon is changed.*/event BeaconUpgraded(address indexed beacon);}
Compiler Settings
{"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata","storageLayout"],"":["ast"]}},"optimizer":{"runs":200,"enabled":true},"libraries":{}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"AdminChanged","inputs":[{"type":"address","name":"previousAdmin","internalType":"address","indexed":false},{"type":"address","name":"newAdmin","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"BeaconUpgraded","inputs":[{"type":"address","name":"beacon","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Claim","inputs":[{"type":"address","name":"receiver","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Compound","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"compoundAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"CompoundWithFees","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"compoundAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"feeProtocol","internalType":"uint256","indexed":false},{"type":"uint256","name":"feeCompounder","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Deposit","inputs":[{"type":"address","name":"sender","internalType":"address","indexed":true},{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"uint256","name":"assets","internalType":"uint256","indexed":false},{"type":"uint256","name":"shares","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"DistributorChanged","inputs":[{"type":"address","name":"newAddress","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"FeeTreasuryChanged","inputs":[{"type":"address","name":"newAddress","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"Initialized","inputs":[{"type":"uint8","name":"version","internalType":"uint8","indexed":false}],"anonymous":false},{"type":"event","name":"Paused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"previousAdminRole","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"newAdminRole","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Stake","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"shares","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Unpaused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"Unstake","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"shares","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Upgraded","inputs":[{"type":"address","name":"implementation","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ValidatorAdded","inputs":[{"type":"string","name":"val","internalType":"string","indexed":false},{"type":"uint256","name":"newAllocPoint","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ValidatorRedelegated","inputs":[{"type":"string","name":"srcVal","internalType":"string","indexed":false},{"type":"string","name":"dstVal","internalType":"string","indexed":false},{"type":"uint256","name":"sharesAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"redelegatedShares","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ValidatorRemoved","inputs":[{"type":"string","name":"val","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"ValidatorUpdated","inputs":[{"type":"string","name":"val","internalType":"string","indexed":false},{"type":"uint256","name":"newAllocPoint","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"VestedFXChanged","inputs":[{"type":"address","name":"newAddress","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"Withdraw","inputs":[{"type":"address","name":"sender","internalType":"address","indexed":true},{"type":"address","name":"receiver","internalType":"address","indexed":true},{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"uint256","name":"assets","internalType":"uint256","indexed":false},{"type":"uint256","name":"shares","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"GOVERNOR_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"OPERATOR_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"OWNER_ROLE","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addValidator","inputs":[{"type":"string","name":"_validator","internalType":"string"},{"type":"uint256","name":"_allocPoint","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"addedValidator","inputs":[{"type":"string","name":"","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"asset","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"claim","inputs":[{"type":"address","name":"receiver","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"claimable","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"compound","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"convertToAssets","inputs":[{"type":"uint256","name":"shares","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"convertToShares","inputs":[{"type":"uint256","name":"assets","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"deposit","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"distributor","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"entrustDelegatedShare","inputs":[{"type":"string","name":"val","internalType":"string"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"feeOnCompounder","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"feeOnReward","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"feeOnWithdrawal","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"feeTreasury","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getTotalDelegationRewards","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"string","name":"","internalType":"string"}],"name":"getValInfo","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getValLength","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getVaultConfigs","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"grantRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"address","name":"_asset","internalType":"address"},{"type":"address","name":"_owner","internalType":"address"},{"type":"address","name":"_governor","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxDeposit","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxMint","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxRedeem","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxWithdraw","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"mint","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pause","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pendingFxReward","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"previewDeposit","inputs":[{"type":"uint256","name":"assets","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"previewMint","inputs":[{"type":"uint256","name":"shares","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"previewRedeem","inputs":[{"type":"uint256","name":"shares","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"previewWithdraw","inputs":[{"type":"uint256","name":"assets","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"proxiableUUID","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"recoverToken","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"address","name":"_recipient","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"redeem","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"redelegateValidator","inputs":[{"type":"uint256","name":"srcId","internalType":"uint256"},{"type":"uint256","name":"dstId","internalType":"uint256"},{"type":"uint256","name":"redelegateAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeValidator","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"rewardToken","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"sendVestedFX","inputs":[{"type":"uint256","name":"safeAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"stake","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"bool","name":"native","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalAssets","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unpause","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unstake","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateConfigs","inputs":[{"type":"uint256","name":"newMinCompound","internalType":"uint256"},{"type":"uint256","name":"newCapStakeFxTarget","internalType":"uint256"},{"type":"uint256","name":"newUnstakeFxTarget","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateDistributor","inputs":[{"type":"address","name":"newAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateFeeTreasury","inputs":[{"type":"address","name":"newAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateFees","inputs":[{"type":"uint256","name":"newFeeOnReward","internalType":"uint256"},{"type":"uint256","name":"newFeeOnCompounder","internalType":"uint256"},{"type":"uint256","name":"newFeeOnWithdrawal","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateRewards","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateValidator","inputs":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"uint256","name":"newAllocPoint","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateVestedFX","inputs":[{"type":"address","name":"newAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"upgradeTo","inputs":[{"type":"address","name":"newImplementation","internalType":"address"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"upgradeToAndCall","inputs":[{"type":"address","name":"newImplementation","internalType":"address"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"claimableReward","internalType":"uint256"},{"type":"uint256","name":"previousCumulatedRewardPerToken","internalType":"uint256"}],"name":"userInfo","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"allocPoint","internalType":"uint256"},{"type":"string","name":"validator","internalType":"string"}],"name":"valInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"stakeId","internalType":"uint256"},{"type":"uint256","name":"unstakeId","internalType":"uint256"},{"type":"uint256","name":"length","internalType":"uint256"},{"type":"uint256","name":"totalAllocPoint","internalType":"uint256"},{"type":"uint256","name":"cumulativeRewardPerToken","internalType":"uint256"}],"name":"vaultInfo","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"vestedFX","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"withdraw","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"}]},{"type":"receive","stateMutability":"payable"}]
Contract Creation Code
0x60a0604052306080523480156200001557600080fd5b506200002062000026565b620000e7565b600054610100900460ff1615620000935760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620000e5576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051615ccf6200011f600039600081816115e50152818161162501528181611876015281816118b60152611a500152615ccf6000f3fe6080604052600436106104615760003560e01c80636e553f651161023f578063bfe1092811610139578063d8e392f5116100b6578063f4536afc1161007a578063f4536afc14610d1b578063f5b541a614610d4f578063f69e204614610d73578063f7c618c114610d88578063fe1b482a14610d9d57600080fd5b8063d8e392f514610c9a578063d905777e14610cba578063dd62ed3e14610cda578063e58378bb14610cfa578063ef8b30f714610bd657600080fd5b8063ccc57490116100fd578063ccc5749014610bf6578063ce96cb7714610c1a578063d04323c514610c3a578063d4a0d4c614610c5a578063d547741f14610c7a57600080fd5b8063bfe1092814610b74578063c0c53b8b14610b95578063c3e17dc814610bb5578063c63d75b61461080c578063c6e6f59214610bd657600080fd5b80639c783aae116101c7578063b3d7f6b91161018b578063b3d7f6b914610b02578063b44d29c314610b22578063b460af9414610b39578063ba08765214610b39578063bc30a61814610b5457600080fd5b80639c783aae14610a5e578063a217fddf14610a9a578063a457c2d714610aaf578063a9059cbb14610acf578063abe50f1914610aef57600080fd5b80638456cb591161020e5780638456cb59146109f45780638e512acb14610a0957806391d1485414610a2957806394bf804d1461098857806395d89b4114610a4957600080fd5b80636e553f651461098857806370a08231146109a85780637f77403d146109c857806380cdf6e7146109dd57600080fd5b806336568abe1161035b5780634f1ef286116102d857806354651a781161029c57806354651a78146109015780635c975abb1461091757806360dc23401461093057806365a545f414610951578063684d6fdf1461097157600080fd5b80634f1ef286146108455780634f9e380514610858578063501ec738146108785780635128823a146108cc57806352d1902d146108ec57600080fd5b80633f4ba83a1161031f5780633f4ba83a146107d7578063402914f5146107ec578063402d267d1461080c57806346ab150e1461082e5780634cdad506146104e757600080fd5b806336568abe1461072f5780633659cfe61461074f57806338d52e0f1461076f57806339509351146107a25780633e158b0c146107c257600080fd5b80631959a002116103e9578063248a9ca3116103ad578063248a9ca3146106775780632d82b70b146106a85780632e17de78146106c85780632f2ff15d146106e8578063313ce5671461070857600080fd5b80631959a002146105ad5780631d07b544146105f75780631e83409a14610617578063224290851461063757806323b872dd1461065757600080fd5b8063095ea7b311610430578063095ea7b3146105075780630a28a47714610527578063102dbefe14610547578063156be05a1461057557806318160ddd1461059757600080fd5b806301e1d1141461046d57806301ffc9a71461049557806306fdde03146104c557806307a2d13a146104e757600080fd5b3661046857005b600080fd5b34801561047957600080fd5b50610482610db2565b6040519081526020015b60405180910390f35b3480156104a157600080fd5b506104b56104b036600461503b565b610dc3565b604051901515815260200161048c565b3480156104d157600080fd5b506104da610df8565b60405161048c91906150b5565b3480156104f357600080fd5b506104826105023660046150c8565b610e8b565b34801561051357600080fd5b506104b56105223660046150f6565b610e98565b34801561053357600080fd5b506104826105423660046150c8565b610eb0565b34801561055357600080fd5b506105676105623660046150c8565b610ebd565b60405161048c929190615122565b34801561058157600080fd5b50610595610590366004615208565b610f63565b005b3480156105a357600080fd5b506101c354610482565b3480156105b957600080fd5b506105e26105c836600461524d565b610267602052600090815260409020805460019091015482565b6040805192835260208301919091520161048c565b34801561060357600080fd5b506105676106123660046150c8565b6110b5565b34801561062357600080fd5b5061048261063236600461524d565b611166565b34801561064357600080fd5b5061059561065236600461526a565b61118b565b34801561066357600080fd5b506104b5610672366004615296565b6111b7565b34801561068357600080fd5b506104826106923660046150c8565b600090815261012c602052604090206001015490565b3480156106b457600080fd5b506105956106c3366004615208565b6111dd565b3480156106d457600080fd5b506105956106e33660046150c8565b6113c4565b3480156106f457600080fd5b506105956107033660046152d7565b611516565b34801561071457600080fd5b5061071d611541565b60405160ff909116815260200161048c565b34801561073b57600080fd5b5061059561074a3660046152d7565b611561565b34801561075b57600080fd5b5061059561076a36600461524d565b6115db565b34801561077b57600080fd5b506101f3546001600160a01b03165b6040516001600160a01b03909116815260200161048c565b3480156107ae57600080fd5b506104b56107bd3660046150f6565b6116b7565b3480156107ce57600080fd5b506105956116d9565b3480156107e357600080fd5b506105956116f7565b3480156107f857600080fd5b5061048261080736600461524d565b611716565b34801561081857600080fd5b5061048261082736600461524d565b5060001990565b34801561083a57600080fd5b506104826102575481565b610595610853366004615307565b61186c565b34801561086457600080fd5b5061059561087336600461526a565b611938565b34801561088457600080fd5b5061026154610262546102635461026454610265546108a4949392919085565b604080519586526020860194909452928401919091526060830152608082015260a00161048c565b3480156108d857600080fd5b506105956108e736600461536b565b611964565b3480156108f857600080fd5b50610482611a43565b34801561090d57600080fd5b5061026354610482565b34801561092357600080fd5b5061018f5460ff166104b5565b34801561093c57600080fd5b5061025b5461078a906001600160a01b031681565b34801561095d57600080fd5b5061059561096c36600461524d565b611af6565b34801561097d57600080fd5b506104826102565481565b34801561099457600080fd5b506104826109a33660046152d7565b611b64565b3480156109b457600080fd5b506104826109c336600461524d565b611b9a565b3480156109d457600080fd5b50610595611bb6565b3480156109e957600080fd5b506104826102595481565b348015610a0057600080fd5b50610595611dc7565b348015610a1557600080fd5b50610595610a2436600461526a565b611de6565b348015610a3557600080fd5b506104b5610a443660046152d7565b6120a8565b348015610a5557600080fd5b506104da6120d4565b348015610a6a57600080fd5b506104b5610a7936600461538d565b80516020818301810180516102688252928201919093012091525460ff1681565b348015610aa657600080fd5b50610482600081565b348015610abb57600080fd5b506104b5610aca3660046150f6565b6120e4565b348015610adb57600080fd5b506104b5610aea3660046150f6565b61216a565b610595610afd3660046153d0565b612178565b348015610b0e57600080fd5b50610482610b1d3660046150c8565b6123c7565b348015610b2e57600080fd5b506104826102585481565b348015610b4557600080fd5b506104826109a33660046153f5565b348015610b6057600080fd5b50610595610b6f36600461524d565b6123d4565b348015610b8057600080fd5b5061025c5461078a906001600160a01b031681565b348015610ba157600080fd5b50610595610bb0366004615437565b61243a565b348015610bc157600080fd5b5061025a5461078a906001600160a01b031681565b348015610be257600080fd5b50610482610bf13660046150c8565b61259a565b348015610c0257600080fd5b506104826c474f5645524e4f525f524f4c4560981b81565b348015610c2657600080fd5b50610482610c3536600461524d565b6125a7565b348015610c4657600080fd5b50610595610c55366004615467565b6125bc565b348015610c6657600080fd5b50610595610c7536600461524d565b6126c3565b348015610c8657600080fd5b50610595610c953660046152d7565b612729565b348015610ca657600080fd5b50610595610cb53660046150c8565b61274f565b348015610cc657600080fd5b50610482610cd536600461524d565b61280d565b348015610ce657600080fd5b50610482610cf536600461549e565b612818565b348015610d0657600080fd5b50610482694f574e45525f524f4c4560b01b81565b348015610d2757600080fd5b5061025d5461025e54610260546040805193845260208401929092529082015260600161048c565b348015610d5b57600080fd5b506104826c4f50455241544f525f524f4c4560981b81565b348015610d7f57600080fd5b50610595612844565b348015610d9457600080fd5b5061078a61285c565b348015610da957600080fd5b506104826128cb565b600080610dbd6129c9565b92915050565b60006001600160e01b03198216637965db0b60e01b1480610dbd57506301ffc9a760e01b6001600160e01b0319831614610dbd565b60606101c48054610e08906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610e34906154cc565b8015610e815780601f10610e5657610100808354040283529160200191610e81565b820191906000526020600020905b815481529060010190602001808311610e6457829003601f168201915b5050505050905090565b6000610dbd826000612abb565b600033610ea6818585612af3565b5060019392505050565b6000610dbd826001612c18565b6102666020526000908152604090208054600182018054919291610ee0906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0c906154cc565b8015610f595780601f10610f2e57610100808354040283529160200191610f59565b820191906000526020600020905b815481529060010190602001808311610f3c57829003601f168201915b5050505050905082565b6c474f5645524e4f525f524f4c4560981b610f7d81612c4b565b61026883604051610f8e9190615506565b9081526040519081900360200190205460ff1615610fde5760405162461bcd60e51b8152602060048201526008602482015267185919195915985b60c21b60448201526064015b60405180910390fd5b61026354600090815261026660205260409020600101610ffe8482615568565b506102638054600090815261026660205260408120849055815491906110238361563e565b919050555081610261600301600082825461103e9190615657565b925050819055506001610268846040516110589190615506565b908152604051908190036020018120805492151560ff19909316929092179091557f629f58e50ce5bc6c5368883b59192dea9abbda8c1590556929289ed147daa075906110a8908590859061566a565b60405180910390a1505050565b600081815261026660205260408120805460019091018054606092919081906110dd906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611109906154cc565b80156111565780601f1061112b57610100808354040283529160200191611156565b820191906000526020600020905b81548152906001019060200180831161113957829003601f168201915b5050505050905091509150915091565b6000611170612c55565b61117a3383612cae565b90506111866001609655565b919050565b6c474f5645524e4f525f524f4c4560981b6111a581612c4b565b50610257929092556102585561025955565b6000336111c5858285612d45565b6111d0858585612db9565b60019150505b9392505050565b6111e5612c55565b6111ed612f71565b600081116112305760405162461bcd60e51b815260206004820152601060248201526f456e74727573743a203020736861726560801b6044820152606401610fd5565b60008061123d8433612fb8565b91509150828210156112845760405162461bcd60e51b815260206004820152601060248201526f4e6f7420656e6f75676820736861726560801b6044820152606401610fd5565b61128c613066565b6112963333612cae565b5060006112a1610db2565b90506000826112b085876156a2565b6112ba91906156b6565b61025e549091506112cb8383615657565b11156113085760405162461bcd60e51b815260206004820152600c60248201526b05374616b653a203e204361760a41b6044820152606401610fd5565b60006113146101c35490565b90506000806113258933308b6131ff565b9150915080610256600082825461133c9190615657565b909155506000905082158061134f575083155b6113655761136083858860006132bf565b611367565b825b9050611373338261331c565b604080518481526020810183905233917f5af417134f72a9d41143ace85b0a26dce6f550f894f2cbc1eeee8810603d91b6910160405180910390a250505050505050506113c06001609655565b5050565b6113cc612c55565b6113d4612f71565b600081116114185760405162461bcd60e51b8152602060048201526011602482015270155b9cdd185ad94e880c08185b5bdd5b9d607a1b6044820152606401610fd5565b600061142333611b9a565b9050818110156114665760405162461bcd60e51b815260206004820152600e60248201526d416d6f756e74203e207374616b6560901b6044820152606401610fd5565b61146e613066565b6114783333612cae565b50600061148483610e8b565b905060006127106102595461271061149c91906156cd565b6114a690846156b6565b6114b091906156a2565b90506114bc33856133eb565b80156114cb576114cb8161352e565b604080518281526020810186905233917ff960dbf9e5d0682f7a298ed974e33a28b4464914b7a2bfac12ae419a9afeb280910160405180910390a25050506115136001609655565b50565b600082815261012c602052604090206001015461153281612c4b565b61153c83836136c1565b505050565b6000806101f35461155c9190600160a01b900460ff166156e0565b905090565b6001600160a01b03811633146115d15760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610fd5565b6113c08282613748565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036116235760405162461bcd60e51b8152600401610fd5906156f9565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661166c600080516020615c53833981519152546001600160a01b031690565b6001600160a01b0316146116925760405162461bcd60e51b8152600401610fd590615745565b61169b816137b0565b60408051600080825260208201909252611513918391906137c7565b600033610ea68185856116ca8383612818565b6116d49190615657565b612af3565b6116e1612c55565b6116eb6000613932565b6116f56001609655565b565b694f574e45525f524f4c4560b01b61170e81612c4b565b611513613a98565b6001600160a01b03811660009081526102676020908152604080832081518083019092528054825260010154918101919091528161175384611b9a565b90508060000361176557505192915050565b60006117716101c35490565b905060006c0c9f2c9cd04674edea4000000061025c60009054906101000a90046001600160a01b03166001600160a01b031663eded3fda6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117fb9190615791565b61180591906156b6565b9050600061181383836156a2565b610265546118219190615657565b90506c0c9f2c9cd04674edea4000000085602001518261184191906156cd565b61184b90866156b6565b61185591906156a2565b85516118619190615657565b979650505050505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036118b45760405162461bcd60e51b8152600401610fd5906156f9565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118fd600080516020615c53833981519152546001600160a01b031690565b6001600160a01b0316146119235760405162461bcd60e51b8152600401610fd590615745565b61192c826137b0565b6113c0828260016137c7565b6c474f5645524e4f525f524f4c4560981b61195281612c4b565b5061025d9290925561025e5561026055565b6c474f5645524e4f525f524f4c4560981b61197e81612c4b565b6102635483106119bd5760405162461bcd60e51b815260206004820152600a602482015269125b9d985b1a5908125160b21b6044820152606401610fd5565b600083815261026660205260409020546102645481906119de908590615657565b6119e891906156cd565b61026455600084815261026660205260409081902084815590517f772c4dd6aa65f9df35ad1651832145634a54ecbc75b6409a0f982e7dc88e45d491611a359160019091019086906157aa565b60405180910390a150505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611ae35760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610fd5565b50600080516020615c5383398151915290565b694f574e45525f524f4c4560b01b611b0d81612c4b565b61025a80546001600160a01b0319166001600160a01b0384169081179091556040519081527f699887cd555c0c7e02df97f2ac6fe2db97cd0418f47a782b7ffa6fcfa0c96743906020015b60405180910390a15050565b60405162461bcd60e51b8152602060048201526008602482015267191a5cd8589b195960c21b6044820152600090606401610fd5565b6001600160a01b031660009081526101c1602052604090205490565b6c474f5645524e4f525f524f4c4560981b611bd081612c4b565b6000611bdc6102635490565b905060005b81811015611db357600081815261026660205260408120549003611dab576000818152610266602052604081206001018054611c1c906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611c48906154cc565b8015611c955780601f10611c6a57610100808354040283529160200191611c95565b820191906000526020600020905b815481529060010190602001808311611c7857829003601f168201915b505050505090506000611ca88230612fb8565b50905080600003611da857600061026883604051611cc69190615506565b908152604051908190036020019020805491151560ff199092169190911790556000611cf36001866156cd565b6000818152610266602052604080822087835291208154815591925090600180820190611d229084018261583e565b50505060008181526102666020526040812081815590611d456001830182614fed565b50507f53344ca00b011ca20d3dc9f1bb71ed60e097b598b9f35482879138cc15f28ef983604051611d7691906150b5565b60405180910390a184611d8881615911565b95505083600003611d9b57505050611be1565b611da484615911565b9350505b50505b600101611be1565b506000610261819055610262556102635550565b694f574e45525f524f4c4560b01b611dde81612c4b565b611513613aeb565b6c474f5645524e4f525f524f4c4560981b611e0081612c4b565b6102635484108015611e1457506102635483105b611e4d5760405162461bcd60e51b815260206004820152600a602482015269125b9d985b1a5908125160b21b6044820152606401610fd5565b6000610266600086815260200190815260200160002060405180604001604052908160008201548152602001600182018054611e88906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611eb4906154cc565b8015611f015780601f10611ed657610100808354040283529160200191611f01565b820191906000526020600020905b815481529060010190602001808311611ee457829003601f168201915b50505050508152505090506000610266600086815260200190815260200160002060405180604001604052908160008201548152602001600182018054611f47906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611f73906154cc565b8015611fc05780601f10611f9557610100808354040283529160200191611fc0565b820191906000526020600020905b815481529060010190602001808311611fa357829003601f168201915b50505050508152505090506000611fdb836020015130612fb8565b915050808511156120185760405162461bcd60e51b815260206004820152600760248201526608505b5bdd5b9d60ca1b6044820152606401610fd5565b612020613066565b60006120358460200151846020015188613b29565b90506001811515146120595760405162461bcd60e51b8152600401610fd590615928565b7f4b81c788046a326390b0432cf535dffbfc0ba3b5f1bf9bfbf9f5b1533d335cb9846020015184602001518889604051612096949392919061594f565b60405180910390a15050505050505050565b600091825261012c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606101c58054610e08906154cc565b600033816120f28286612818565b9050838110156121525760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610fd5565b61215f8286868403612af3565b506001949350505050565b600033610ea6818585612db9565b612180612c55565b612188612f71565b600082116121ca5760405162461bcd60e51b815260206004820152600f60248201526e14dd185ad94e880c08185b5bdd5b9d608a1b6044820152606401610fd5565b6001811515146121db5760006121dd565b815b34146122145760405162461bcd60e51b8152602060048201526006602482015265085d985b1a5960d21b6044820152606401610fd5565b61025e54612220610db2565b61222a9084615657565b11156122675760405162461bcd60e51b815260206004820152600c60248201526b05374616b653a203e204361760a41b6044820152606401610fd5565b61226f613066565b6122793333612cae565b50801515600003612361576040516323b872dd60e01b8152336004820152306024820152604481018390527380b5a32e4f032b2a058b4f29ec95eefeeb87adcd906323b872dd90606401600060405180830381600087803b1580156122dd57600080fd5b505af11580156122f1573d6000803e3d6000fd5b505060405163f3fef3a360e01b8152306004820152602481018590527380b5a32e4f032b2a058b4f29ec95eefeeb87adcd925063f3fef3a39150604401600060405180830381600087803b15801561234857600080fd5b505af115801561235c573d6000803e3d6000fd5b505050505b600061236c8361259a565b9050612378338261331c565b61238183613b98565b604080518481526020810183905233917f5af417134f72a9d41143ace85b0a26dce6f550f894f2cbc1eeee8810603d91b6910160405180910390a2506113c06001609655565b6000610dbd826001612abb565b694f574e45525f524f4c4560b01b6123eb81612c4b565b61025c80546001600160a01b0319166001600160a01b0384169081179091556040519081527fe37acc13f5ed9d0cc83c2842e093fe5a494d5b8fb5b1db06356b327081832f5290602001611b58565b600054610100900460ff161580801561245a5750600054600160ff909116105b806124745750303b158015612474575060005460ff166001145b6124d75760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610fd5565b6000805460ff1916600117905580156124fa576000805461ff0019166101001790555b61254a846040518060400160405280600f81526020016e29ba30b5b2b210232c102a37b5b2b760891b815250604051806040016040528060048152602001630a6e88cb60e31b8152508686613dbd565b612552613df1565b8015612594576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602001611a35565b50505050565b6000610dbd826000612c18565b6000610dbd6125b583611b9a565b6000612abb565b694f574e45525f524f4c4560b01b6125d381612c4b565b6001600160a01b0382166126205760405162461bcd60e51b815260206004820152601460248201527353656e6420746f207a65726f206164647265737360601b6044820152606401610fd5565b6001600160a01b03841615612648576126436001600160a01b0385168385613e18565b612594565b60405182906000906001600160a01b0383169086908381818185875af1925050503d8060008114612695576040519150601f19603f3d011682016040523d82523d6000602084013e61269a565b606091505b50509050806126bb5760405162461bcd60e51b8152600401610fd590615988565b505050505050565b694f574e45525f524f4c4560b01b6126da81612c4b565b61025b80546001600160a01b0319166001600160a01b0384169081179091556040519081527ff30aa7cab072f507cbc1b4906dcc281e649884fded6a818238e407dee53bf0ba90602001611b58565b600082815261012c602052604090206001015461274581612c4b565b61153c8383613748565b61025a546001600160a01b031633146127a35760405162461bcd60e51b815260206004820152601660248201527513db9b1e4815995cdd195911960818d85b8818d85b1b60521b6044820152606401610fd5565b6040513390600090829084908381818185875af1925050503d80600081146127e7576040519150601f19603f3d011682016040523d82523d6000602084013e6127ec565b606091505b505090508061153c5760405162461bcd60e51b8152600401610fd590615988565b6000610dbd82611b9a565b6001600160a01b0391821660009081526101c26020908152604080832093909416825291909152205490565b61284c612c55565b612854612f71565b6116eb613066565b61025c546040805163f7c618c160e01b815290516000926001600160a01b03169163f7c618c19160048083019260209291908290030181865afa1580156128a7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155c91906159b3565b60008060006128da6102635490565b905060005b818110156129b3576000818152610266602052604081206001018054612904906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054612930906154cc565b801561297d5780601f106129525761010080835404028352916020019161297d565b820191906000526020600020905b81548152906001019060200180831161296057829003601f168201915b5050505050905060006129908230613e6a565b905061299c8186615657565b9450505080806129ab9061563e565b9150506128df565b50610256546129c29083615657565b9250505090565b60008060006129d86102635490565b905060005b81811015612ab3576000818152610266602052604081206001018054612a02906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054612a2e906154cc565b8015612a7b5780601f10612a5057610100808354040283529160200191612a7b565b820191906000526020600020905b815481529060010190602001808311612a5e57829003601f168201915b505050505090506000612a8e8230612fb8565b9150612a9c90508186615657565b945050508080612aab9061563e565b9150506129dd565b509092915050565b600080612ac86101c35490565b90508015612ae957612ae4612adb610db2565b859083866132bf565b612aeb565b835b949350505050565b6001600160a01b038316612b555760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610fd5565b6001600160a01b038216612bb65760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610fd5565b6001600160a01b0383811660008181526101c2602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600080612c256101c35490565b9050831580612c32575080155b612ae957612ae481612c42610db2565b869190866132bf565b6115138133613f16565b600260965403612ca75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610fd5565b6002609655565b6000612cb983613932565b6001600160a01b0383166000908152610267602052604081208054918155908015612aeb57612cfb8482612ceb61285c565b6001600160a01b03169190613e18565b604080516001600160a01b0387168152602081018390527f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4910160405180910390a1949350505050565b6000612d518484612818565b905060001981146125945781811015612dac5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610fd5565b6125948484848403612af3565b6001600160a01b038316612e1d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610fd5565b6001600160a01b038216612e7f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610fd5565b612e8a838383613f6f565b6001600160a01b03831660009081526101c1602052604090205481811015612f035760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610fd5565b6001600160a01b0380851660008181526101c1602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612f649086815260200190565b60405180910390a3612594565b61018f5460ff16156116f55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610fd5565b6000808080611003612fca8787613f89565b604051612fd79190615506565b600060405180830381855afa9150503d8060008114613012576040519150601f19603f3d011682016040523d82523d6000602084013e613017565b606091505b509150915061305082826040518060400160405280601181526020017019195b1959d85d1a5bdb8819985a5b1959607a1b815250613fd0565b61305981614024565b9350935050509250929050565b61306e61404a565b6102568054600091829055610257549091906127109061308e90846156b6565b61309891906156a2565b9050600061271061025854846130ae91906156b6565b6130b891906156a2565b9050806130c583856156cd565b6130cf91906156cd565b92506130da83613b98565b61025b546040516001600160a01b03909116903390600090839086908381818185875af1925050503d806000811461312e576040519150601f19603f3d011682016040523d82523d6000602084013e613133565b606091505b505090506000826001600160a01b03168560405160006040518083038185875af1925050503d8060008114613184576040519150601f19603f3d011682016040523d82523d6000602084013e613189565b606091505b505090508180156131975750805b6131b35760405162461bcd60e51b8152600401610fd590615988565b604080518881526020810188905290810186905233907f26d9e92b9fa4eb064465ecae8eb30c511a5f35fc85e1128cb964013f336fee939060600160405180910390a250505050505050565b600080808061100361321389898989614162565b6040516132209190615506565b6000604051808303816000865af19150503d806000811461325d576040519150601f19603f3d011682016040523d82523d6000602084013e613262565b606091505b50915091506132a782826040518060400160405280601981526020017f7472616e7366657246726f6d536861726573206661696c656400000000000000815250613fd0565b6132b081614024565b93509350505094509492505050565b6000806132cd8686866141af565b905060018360028111156132e3576132e36159d0565b1480156133005750600084806132fb576132fb61568c565b868809115b1561331357613310600182615657565b90505b95945050505050565b6001600160a01b0382166133725760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610fd5565b61337e60008383613f6f565b806101c360008282546133919190615657565b90915550506001600160a01b03821660008181526101c160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b03821661344b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610fd5565b61345782600083613f6f565b6001600160a01b03821660009081526101c16020526040902054818110156134cc5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610fd5565b6001600160a01b03831660008181526101c16020908152604080832086860390556101c380548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6040805160a0810182526102615481526102625460208201819052610263549282018390526102645460608301526102655460808301529091600084905060008060006102605488106135c857600061358860028a6156a2565b90506135948782614299565b92506135a083866156cd565b9450856135ae886001615657565b6135b891906159e6565b96506135c48285615657565b9350505b831561360f576135d88685614299565b91506135e482856156cd565b9350846135f2876001615657565b6135fc91906159e6565b95506136088184615657565b92506135c8565b61025a546001600160a01b031663285c7317338a61363042621baf80615657565b6040516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091526044820152606401600060405180830381600087803b15801561367e57600080fd5b505af1158015613692573d6000803e3d6000fd5b5050506102628790555061025680548491906000906136b2908490615657565b90915550505050505050505050565b6136cb82826120a8565b6113c057600082815261012c602090815260408083206001600160a01b03851684529091529020805460ff191660011790556137043390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61375282826120a8565b156113c057600082815261012c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b694f574e45525f524f4c4560b01b6113c081612c4b565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156137fa5761153c83614430565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015613854575060408051601f3d908101601f1916820190925261385191810190615791565b60015b6138b75760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610fd5565b600080516020615c5383398151915281146139265760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610fd5565b5061153c8383836144cc565b61025c546040805163e4fc6b6d60e01b815290516000926001600160a01b03169163e4fc6b6d916004808301926020929190829003018187875af115801561397e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139a29190615791565b905060006139b06101c35490565b6102655490915081158015906139c65750600083115b15613a0057816139e36c0c9f2c9cd04674edea40000000856156b6565b6139ed91906156a2565b6139f79082615657565b61026581905590505b80600003613a0e5750505050565b6001600160a01b03841615612594576001600160a01b03841660009081526102676020526040812090613a4086611b9a565b905060006c0c9f2c9cd04674edea40000000836001015485613a6291906156cd565b613a6c90846156b6565b613a7691906156a2565b90506000818460000154613a8a9190615657565b845550505060010155505050565b613aa06144f1565b61018f805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b613af3612f71565b61018f805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613ace3390565b604051637711363360e11b81526000906110039063ee226c6690613b55908790879087906004016159fa565b6020604051808303816000875af1158015613b74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612aeb9190615a30565b6040805160a0810182526102615480825261026254602083015261026354928201839052610264546060830181905261026554608084015291926000613bdc610db2565b90506000613be98761453b565b90506000613bf782896156a2565b90508760005b8115613dab576000610266600089815260200190815260200160002060405180604001604052908160008201548152602001600182018054613c3e906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054613c6a906154cc565b8015613cb75780601f10613c8c57610100808354040283529160200191613cb7565b820191906000526020600020905b815481529060010190602001808311613c9a57829003601f168201915b5050509190925250508151919250889050613cd38a6001615657565b613cdd91906159e6565b985080600003613cee575050613bfd565b61025e548710613d0057839250613d57565b6000613d10836020015130612fb8565b91505060008b61025e5484613d2591906156b6565b613d2f91906156a2565b9050808210613d415750505050613bfd565b868611613d5057859450613d54565b8694505b50505b6000613d678360200151856145ad565b9050600181151514613d8b5760405162461bcd60e51b8152600401610fd590615928565b613d958489615657565b9750613da184866156cd565b9450505050613bfd565b50505061026193909355505050505050565b613dc685614660565b613dd08484614690565b613dd86146c1565b613de0613df1565b613dea82826146f0565b5050505050565b600054610100900460ff166116f55760405162461bcd60e51b8152600401610fd590615a4d565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261153c908490614786565b60008080611003613e7b868661485b565b604051613e889190615506565b600060405180830381855afa9150503d8060008114613ec3576040519150601f19603f3d011682016040523d82523d6000602084013e613ec8565b606091505b5091509150613f0d82826040518060400160405280601881526020017f64656c65676174696f6e52657761726473206661696c65640000000000000000815250613fd0565b613313816148a2565b613f2082826120a8565b6113c057613f2d816148b9565b613f388360206148cb565b604051602001613f49929190615a98565b60408051601f198184030181529082905262461bcd60e51b8252610fd5916004016150b5565b613f77612f71565b613f8083613932565b61153c82613932565b60608282604051602401613f9e929190615b0d565b60408051601f198184030181529190526020810180516001600160e01b031663d5c498eb60e01b179052905092915050565b8261153c57600082806020019051810190613feb9190615b37565b9050600182511015614011578060405162461bcd60e51b8152600401610fd591906150b5565b8181604051602001613f49929190615ba5565b6000806000808480602001905181019061403e9190615be2565b90969095509350505050565b6000806140576102635490565b905060005b81811015614145576000818152610266602052604081206001018054614081906154cc565b80601f01602080910402602001604051908101604052809291908181526020018280546140ad906154cc565b80156140fa5780601f106140cf576101008083540402835291602001916140fa565b820191906000526020600020905b8154815290600101906020018083116140dd57829003601f168201915b50505050509050600061410d8230613e6a565b9050801561413057600061412083614a67565b905061412c8187615657565b9550505b5050808061413d9061563e565b91505061405c565b508161025660008282546141599190615657565b90915550505050565b60608484848460405160240161417b9493929190615c06565b60408051601f198184030181529190526020810180516001600160e01b031663dc6ffc7d60e01b1790529050949350505050565b60008080600019858709858702925082811083820303915050806000036141e9578382816141df576141df61568c565b04925050506111d6565b8084116142305760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b6044820152606401610fd5565b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b60008281526102666020526040812060010180548291614340916142bc906154cc565b80601f01602080910402602001604051908101604052809291908181526020018280546142e8906154cc565b80156143355780601f1061430a57610100808354040283529160200191614335565b820191906000526020600020905b81548152906001019060200180831161431857829003601f168201915b505050505030612fb8565b9150600090508115612aeb5783821061435a57508261435d565b50805b6000858152610266602052604081206001018054614403919061437f906154cc565b80601f01602080910402602001604051908101604052809291908181526020018280546143ab906154cc565b80156143f85780601f106143cd576101008083540402835291602001916143f8565b820191906000526020600020905b8154815290600101906020018083116143db57829003601f168201915b505050505083614b06565b90506001811515146144275760405162461bcd60e51b8152600401610fd590615928565b50949350505050565b6001600160a01b0381163b61449d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610fd5565b600080516020615c5383398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6144d583614b30565b6000825111806144e25750805b1561153c576125948383614b70565b61018f5460ff166116f55760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610fd5565b60008080614551670de0b6b3a7640000856156a2565b9050600061455f6102635490565b90505b600a821061458957614575600a836156a2565b9150826145818161563e565b935050614562565b82156145a25780831161459c5782613313565b80613313565b600195945050505050565b6000814710156145f65760405162461bcd60e51b8152602060048201526014602482015273696e73756666696369656e742062616c616e636560601b6044820152606401610fd5565b604051636d78803560e01b815261100390636d7880359061461d908690869060040161566a565b6020604051808303816000875af115801561463c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d69190615a30565b600054610100900460ff166146875760405162461bcd60e51b8152600401610fd590615a4d565b61151381614b95565b600054610100900460ff166146b75760405162461bcd60e51b8152600401610fd590615a4d565b6113c08282614c1b565b600054610100900460ff166146e85760405162461bcd60e51b8152600401610fd590615a4d565b6116f5614c5d565b614707694f574e45525f524f4c4560b01b836136c1565b6147216c474f5645524e4f525f524f4c4560981b826136c1565b614738694f574e45525f524f4c4560b01b80614c91565b61475f6c474f5645524e4f525f524f4c4560981b694f574e45525f524f4c4560b01b614c91565b6113c06c4f50455241544f525f524f4c4560981b694f574e45525f524f4c4560b01b614c91565b60006147db826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614cdd9092919063ffffffff16565b90508051600014806147fc5750808060200190518101906147fc9190615a30565b61153c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610fd5565b60608282604051602401614870929190615b0d565b60408051601f198184030181529190526020810180516001600160e01b03166328d7a89d60e11b179052905092915050565b600080828060200190518101906111d69190615791565b6060610dbd6001600160a01b03831660145b606060006148da8360026156b6565b6148e5906002615657565b67ffffffffffffffff8111156148fd576148fd61513b565b6040519080825280601f01601f191660200182016040528015614927576020820181803683370190505b509050600360fc1b8160008151811061494257614942615c3c565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061497157614971615c3c565b60200101906001600160f81b031916908160001a90535060006149958460026156b6565b6149a0906001615657565b90505b6001811115614a18576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106149d4576149d4615c3c565b1a60f81b8282815181106149ea576149ea615c3c565b60200101906001600160f81b031916908160001a90535060049490941c93614a1181615911565b90506149a3565b5083156111d65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610fd5565b60008080611003614a7785614cec565b604051614a849190615506565b6000604051808303816000865af19150503d8060008114614ac1576040519150601f19603f3d011682016040523d82523d6000602084013e614ac6565b606091505b5091509150614afd82826040518060400160405280600f81526020016e1dda5d1a191c985dc819985a5b1959608a1b815250613fd0565b612aeb816148a2565b60405163de2b345160e01b81526000906110039063de2b34519061461d908690869060040161566a565b614b3981614430565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606111d68383604051806060016040528060278152602001615c7360279139614d2f565b600054610100900460ff16614bbc5760405162461bcd60e51b8152600401610fd590615a4d565b600080614bc883614da7565b9150915081614bd8576012614bda565b805b6101f380546001600160a01b039095166001600160a01b031960ff93909316600160a01b02929092166001600160a81b031990951694909417179092555050565b600054610100900460ff16614c425760405162461bcd60e51b8152600401610fd590615a4d565b6101c4614c4f8382615568565b506101c561153c8282615568565b600054610100900460ff16614c845760405162461bcd60e51b8152600401610fd590615a4d565b61018f805460ff19169055565b600082815261012c6020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6060612aeb8484600085614e83565b606081604051602401614cff91906150b5565b60408051601f198184030181529190526020810180516001600160e01b03166318fdb3e160e11b17905292915050565b6060600080856001600160a01b031685604051614d4c9190615506565b600060405180830381855af49150503d8060008114614d87576040519150601f19603f3d011682016040523d82523d6000602084013e614d8c565b606091505b5091509150614d9d86838387614f4f565b9695505050505050565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b17905290516000918291829182916001600160a01b03871691614dee91615506565b600060405180830381855afa9150503d8060008114614e29576040519150601f19603f3d011682016040523d82523d6000602084013e614e2e565b606091505b5091509150818015614e4257506020815110155b15614e7657600081806020019051810190614e5d9190615791565b905060ff8111614e74576001969095509350505050565b505b5060009485945092505050565b606082471015614ee45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610fd5565b600080866001600160a01b03168587604051614f009190615506565b60006040518083038185875af1925050503d8060008114614f3d576040519150601f19603f3d011682016040523d82523d6000602084013e614f42565b606091505b5091509150611861878383875b60608315614fbe578251600003614fb7576001600160a01b0385163b614fb75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610fd5565b5081612aeb565b612aeb8383815115614fd35781518083602001fd5b8060405162461bcd60e51b8152600401610fd591906150b5565b508054614ff9906154cc565b6000825580601f10615009575050565b601f01602090049060005260206000209081019061151391905b808211156150375760008155600101615023565b5090565b60006020828403121561504d57600080fd5b81356001600160e01b0319811681146111d657600080fd5b60005b83811015615080578181015183820152602001615068565b50506000910152565b600081518084526150a1816020860160208601615065565b601f01601f19169290920160200192915050565b6020815260006111d66020830184615089565b6000602082840312156150da57600080fd5b5035919050565b6001600160a01b038116811461151357600080fd5b6000806040838503121561510957600080fd5b8235615114816150e1565b946020939093013593505050565b828152604060208201526000612aeb6040830184615089565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561517a5761517a61513b565b604052919050565b600067ffffffffffffffff82111561519c5761519c61513b565b50601f01601f191660200190565b60006151bd6151b884615182565b615151565b90508281528383830111156151d157600080fd5b828260208301376000602084830101529392505050565b600082601f8301126151f957600080fd5b6111d6838335602085016151aa565b6000806040838503121561521b57600080fd5b823567ffffffffffffffff81111561523257600080fd5b61523e858286016151e8565b95602094909401359450505050565b60006020828403121561525f57600080fd5b81356111d6816150e1565b60008060006060848603121561527f57600080fd5b505081359360208301359350604090920135919050565b6000806000606084860312156152ab57600080fd5b83356152b6816150e1565b925060208401356152c6816150e1565b929592945050506040919091013590565b600080604083850312156152ea57600080fd5b8235915060208301356152fc816150e1565b809150509250929050565b6000806040838503121561531a57600080fd5b8235615325816150e1565b9150602083013567ffffffffffffffff81111561534157600080fd5b8301601f8101851361535257600080fd5b615361858235602084016151aa565b9150509250929050565b6000806040838503121561537e57600080fd5b50508035926020909101359150565b60006020828403121561539f57600080fd5b813567ffffffffffffffff8111156153b657600080fd5b612aeb848285016151e8565b801515811461151357600080fd5b600080604083850312156153e357600080fd5b8235915060208301356152fc816153c2565b60008060006060848603121561540a57600080fd5b83359250602084013561541c816150e1565b9150604084013561542c816150e1565b809150509250925092565b60008060006060848603121561544c57600080fd5b8335615457816150e1565b9250602084013561541c816150e1565b60008060006060848603121561547c57600080fd5b8335615487816150e1565b925060208401359150604084013561542c816150e1565b600080604083850312156154b157600080fd5b82356154bc816150e1565b915060208301356152fc816150e1565b600181811c908216806154e057607f821691505b60208210810361550057634e487b7160e01b600052602260045260246000fd5b50919050565b60008251615518818460208701615065565b9190910192915050565b601f82111561153c57600081815260208120601f850160051c810160208610156155495750805b601f850160051c820191505b818110156126bb57828155600101615555565b815167ffffffffffffffff8111156155825761558261513b565b6155968161559084546154cc565b84615522565b602080601f8311600181146155cb57600084156155b35750858301515b600019600386901b1c1916600185901b1785556126bb565b600085815260208120601f198616915b828110156155fa578886015182559484019460019091019084016155db565b50858210156156185787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b60006001820161565057615650615628565b5060010190565b80820180821115610dbd57610dbd615628565b60408152600061567d6040830185615089565b90508260208301529392505050565b634e487b7160e01b600052601260045260246000fd5b6000826156b1576156b161568c565b500490565b8082028115828204841417610dbd57610dbd615628565b81810381811115610dbd57610dbd615628565b60ff8181168382160190811115610dbd57610dbd615628565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6000602082840312156157a357600080fd5b5051919050565b6040815260008084546157bc816154cc565b80604086015260606001808416600081146157de57600181146157f857615829565b60ff1985168884015283151560051b880183019550615829565b8960005260208060002060005b868110156158205781548b8201870152908401908201615805565b8a018501975050505b50505050506020929092019290925292915050565b818103615849575050565b61585382546154cc565b67ffffffffffffffff81111561586b5761586b61513b565b6158798161559084546154cc565b6000601f8211600181146158ad57600083156158955750848201545b600019600385901b1c1916600184901b178455613dea565b600085815260209020601f19841690600086815260209020845b838110156158e757828601548255600195860195909101906020016158c7565b50858310156156185793015460001960f8600387901b161c19169092555050600190811b01905550565b60008161592057615920615628565b506000190190565b6020808252600d908201526c19195b1959d85d194819985a5b609a1b604082015260600190565b6080815260006159626080830187615089565b82810360208401526159748187615089565b604084019590955250506060015292915050565b60208082526011908201527008cc2d2d8cac840e8de40e6cadcc8408cb607b1b604082015260600190565b6000602082840312156159c557600080fd5b81516111d6816150e1565b634e487b7160e01b600052602160045260246000fd5b6000826159f5576159f561568c565b500690565b606081526000615a0d6060830186615089565b8281036020840152615a1f8186615089565b915050826040830152949350505050565b600060208284031215615a4257600080fd5b81516111d6816153c2565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615ad0816017850160208801615065565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615b01816028840160208801615065565b01602801949350505050565b604081526000615b206040830185615089565b905060018060a01b03831660208301529392505050565b600060208284031215615b4957600080fd5b815167ffffffffffffffff811115615b6057600080fd5b8201601f81018413615b7157600080fd5b8051615b7f6151b882615182565b818152856020838501011115615b9457600080fd5b613313826020830160208601615065565b60008351615bb7818460208801615065565b6101d160f51b9083019081528351615bd6816002840160208801615065565b01600201949350505050565b60008060408385031215615bf557600080fd5b505080516020909101519092909150565b608081526000615c196080830187615089565b6001600160a01b0395861660208401529390941660408201526060015292915050565b634e487b7160e01b600052603260045260246000fdfe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220d195029dad2032c3ad7620272a57da64c9efdbbec2570db9aaf7c506ec8e430b64736f6c63430008120033
Deployed ByteCode
0x6080604052600436106104615760003560e01c80636e553f651161023f578063bfe1092811610139578063d8e392f5116100b6578063f4536afc1161007a578063f4536afc14610d1b578063f5b541a614610d4f578063f69e204614610d73578063f7c618c114610d88578063fe1b482a14610d9d57600080fd5b8063d8e392f514610c9a578063d905777e14610cba578063dd62ed3e14610cda578063e58378bb14610cfa578063ef8b30f714610bd657600080fd5b8063ccc57490116100fd578063ccc5749014610bf6578063ce96cb7714610c1a578063d04323c514610c3a578063d4a0d4c614610c5a578063d547741f14610c7a57600080fd5b8063bfe1092814610b74578063c0c53b8b14610b95578063c3e17dc814610bb5578063c63d75b61461080c578063c6e6f59214610bd657600080fd5b80639c783aae116101c7578063b3d7f6b91161018b578063b3d7f6b914610b02578063b44d29c314610b22578063b460af9414610b39578063ba08765214610b39578063bc30a61814610b5457600080fd5b80639c783aae14610a5e578063a217fddf14610a9a578063a457c2d714610aaf578063a9059cbb14610acf578063abe50f1914610aef57600080fd5b80638456cb591161020e5780638456cb59146109f45780638e512acb14610a0957806391d1485414610a2957806394bf804d1461098857806395d89b4114610a4957600080fd5b80636e553f651461098857806370a08231146109a85780637f77403d146109c857806380cdf6e7146109dd57600080fd5b806336568abe1161035b5780634f1ef286116102d857806354651a781161029c57806354651a78146109015780635c975abb1461091757806360dc23401461093057806365a545f414610951578063684d6fdf1461097157600080fd5b80634f1ef286146108455780634f9e380514610858578063501ec738146108785780635128823a146108cc57806352d1902d146108ec57600080fd5b80633f4ba83a1161031f5780633f4ba83a146107d7578063402914f5146107ec578063402d267d1461080c57806346ab150e1461082e5780634cdad506146104e757600080fd5b806336568abe1461072f5780633659cfe61461074f57806338d52e0f1461076f57806339509351146107a25780633e158b0c146107c257600080fd5b80631959a002116103e9578063248a9ca3116103ad578063248a9ca3146106775780632d82b70b146106a85780632e17de78146106c85780632f2ff15d146106e8578063313ce5671461070857600080fd5b80631959a002146105ad5780631d07b544146105f75780631e83409a14610617578063224290851461063757806323b872dd1461065757600080fd5b8063095ea7b311610430578063095ea7b3146105075780630a28a47714610527578063102dbefe14610547578063156be05a1461057557806318160ddd1461059757600080fd5b806301e1d1141461046d57806301ffc9a71461049557806306fdde03146104c557806307a2d13a146104e757600080fd5b3661046857005b600080fd5b34801561047957600080fd5b50610482610db2565b6040519081526020015b60405180910390f35b3480156104a157600080fd5b506104b56104b036600461503b565b610dc3565b604051901515815260200161048c565b3480156104d157600080fd5b506104da610df8565b60405161048c91906150b5565b3480156104f357600080fd5b506104826105023660046150c8565b610e8b565b34801561051357600080fd5b506104b56105223660046150f6565b610e98565b34801561053357600080fd5b506104826105423660046150c8565b610eb0565b34801561055357600080fd5b506105676105623660046150c8565b610ebd565b60405161048c929190615122565b34801561058157600080fd5b50610595610590366004615208565b610f63565b005b3480156105a357600080fd5b506101c354610482565b3480156105b957600080fd5b506105e26105c836600461524d565b610267602052600090815260409020805460019091015482565b6040805192835260208301919091520161048c565b34801561060357600080fd5b506105676106123660046150c8565b6110b5565b34801561062357600080fd5b5061048261063236600461524d565b611166565b34801561064357600080fd5b5061059561065236600461526a565b61118b565b34801561066357600080fd5b506104b5610672366004615296565b6111b7565b34801561068357600080fd5b506104826106923660046150c8565b600090815261012c602052604090206001015490565b3480156106b457600080fd5b506105956106c3366004615208565b6111dd565b3480156106d457600080fd5b506105956106e33660046150c8565b6113c4565b3480156106f457600080fd5b506105956107033660046152d7565b611516565b34801561071457600080fd5b5061071d611541565b60405160ff909116815260200161048c565b34801561073b57600080fd5b5061059561074a3660046152d7565b611561565b34801561075b57600080fd5b5061059561076a36600461524d565b6115db565b34801561077b57600080fd5b506101f3546001600160a01b03165b6040516001600160a01b03909116815260200161048c565b3480156107ae57600080fd5b506104b56107bd3660046150f6565b6116b7565b3480156107ce57600080fd5b506105956116d9565b3480156107e357600080fd5b506105956116f7565b3480156107f857600080fd5b5061048261080736600461524d565b611716565b34801561081857600080fd5b5061048261082736600461524d565b5060001990565b34801561083a57600080fd5b506104826102575481565b610595610853366004615307565b61186c565b34801561086457600080fd5b5061059561087336600461526a565b611938565b34801561088457600080fd5b5061026154610262546102635461026454610265546108a4949392919085565b604080519586526020860194909452928401919091526060830152608082015260a00161048c565b3480156108d857600080fd5b506105956108e736600461536b565b611964565b3480156108f857600080fd5b50610482611a43565b34801561090d57600080fd5b5061026354610482565b34801561092357600080fd5b5061018f5460ff166104b5565b34801561093c57600080fd5b5061025b5461078a906001600160a01b031681565b34801561095d57600080fd5b5061059561096c36600461524d565b611af6565b34801561097d57600080fd5b506104826102565481565b34801561099457600080fd5b506104826109a33660046152d7565b611b64565b3480156109b457600080fd5b506104826109c336600461524d565b611b9a565b3480156109d457600080fd5b50610595611bb6565b3480156109e957600080fd5b506104826102595481565b348015610a0057600080fd5b50610595611dc7565b348015610a1557600080fd5b50610595610a2436600461526a565b611de6565b348015610a3557600080fd5b506104b5610a443660046152d7565b6120a8565b348015610a5557600080fd5b506104da6120d4565b348015610a6a57600080fd5b506104b5610a7936600461538d565b80516020818301810180516102688252928201919093012091525460ff1681565b348015610aa657600080fd5b50610482600081565b348015610abb57600080fd5b506104b5610aca3660046150f6565b6120e4565b348015610adb57600080fd5b506104b5610aea3660046150f6565b61216a565b610595610afd3660046153d0565b612178565b348015610b0e57600080fd5b50610482610b1d3660046150c8565b6123c7565b348015610b2e57600080fd5b506104826102585481565b348015610b4557600080fd5b506104826109a33660046153f5565b348015610b6057600080fd5b50610595610b6f36600461524d565b6123d4565b348015610b8057600080fd5b5061025c5461078a906001600160a01b031681565b348015610ba157600080fd5b50610595610bb0366004615437565b61243a565b348015610bc157600080fd5b5061025a5461078a906001600160a01b031681565b348015610be257600080fd5b50610482610bf13660046150c8565b61259a565b348015610c0257600080fd5b506104826c474f5645524e4f525f524f4c4560981b81565b348015610c2657600080fd5b50610482610c3536600461524d565b6125a7565b348015610c4657600080fd5b50610595610c55366004615467565b6125bc565b348015610c6657600080fd5b50610595610c7536600461524d565b6126c3565b348015610c8657600080fd5b50610595610c953660046152d7565b612729565b348015610ca657600080fd5b50610595610cb53660046150c8565b61274f565b348015610cc657600080fd5b50610482610cd536600461524d565b61280d565b348015610ce657600080fd5b50610482610cf536600461549e565b612818565b348015610d0657600080fd5b50610482694f574e45525f524f4c4560b01b81565b348015610d2757600080fd5b5061025d5461025e54610260546040805193845260208401929092529082015260600161048c565b348015610d5b57600080fd5b506104826c4f50455241544f525f524f4c4560981b81565b348015610d7f57600080fd5b50610595612844565b348015610d9457600080fd5b5061078a61285c565b348015610da957600080fd5b506104826128cb565b600080610dbd6129c9565b92915050565b60006001600160e01b03198216637965db0b60e01b1480610dbd57506301ffc9a760e01b6001600160e01b0319831614610dbd565b60606101c48054610e08906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610e34906154cc565b8015610e815780601f10610e5657610100808354040283529160200191610e81565b820191906000526020600020905b815481529060010190602001808311610e6457829003601f168201915b5050505050905090565b6000610dbd826000612abb565b600033610ea6818585612af3565b5060019392505050565b6000610dbd826001612c18565b6102666020526000908152604090208054600182018054919291610ee0906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0c906154cc565b8015610f595780601f10610f2e57610100808354040283529160200191610f59565b820191906000526020600020905b815481529060010190602001808311610f3c57829003601f168201915b5050505050905082565b6c474f5645524e4f525f524f4c4560981b610f7d81612c4b565b61026883604051610f8e9190615506565b9081526040519081900360200190205460ff1615610fde5760405162461bcd60e51b8152602060048201526008602482015267185919195915985b60c21b60448201526064015b60405180910390fd5b61026354600090815261026660205260409020600101610ffe8482615568565b506102638054600090815261026660205260408120849055815491906110238361563e565b919050555081610261600301600082825461103e9190615657565b925050819055506001610268846040516110589190615506565b908152604051908190036020018120805492151560ff19909316929092179091557f629f58e50ce5bc6c5368883b59192dea9abbda8c1590556929289ed147daa075906110a8908590859061566a565b60405180910390a1505050565b600081815261026660205260408120805460019091018054606092919081906110dd906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611109906154cc565b80156111565780601f1061112b57610100808354040283529160200191611156565b820191906000526020600020905b81548152906001019060200180831161113957829003601f168201915b5050505050905091509150915091565b6000611170612c55565b61117a3383612cae565b90506111866001609655565b919050565b6c474f5645524e4f525f524f4c4560981b6111a581612c4b565b50610257929092556102585561025955565b6000336111c5858285612d45565b6111d0858585612db9565b60019150505b9392505050565b6111e5612c55565b6111ed612f71565b600081116112305760405162461bcd60e51b815260206004820152601060248201526f456e74727573743a203020736861726560801b6044820152606401610fd5565b60008061123d8433612fb8565b91509150828210156112845760405162461bcd60e51b815260206004820152601060248201526f4e6f7420656e6f75676820736861726560801b6044820152606401610fd5565b61128c613066565b6112963333612cae565b5060006112a1610db2565b90506000826112b085876156a2565b6112ba91906156b6565b61025e549091506112cb8383615657565b11156113085760405162461bcd60e51b815260206004820152600c60248201526b05374616b653a203e204361760a41b6044820152606401610fd5565b60006113146101c35490565b90506000806113258933308b6131ff565b9150915080610256600082825461133c9190615657565b909155506000905082158061134f575083155b6113655761136083858860006132bf565b611367565b825b9050611373338261331c565b604080518481526020810183905233917f5af417134f72a9d41143ace85b0a26dce6f550f894f2cbc1eeee8810603d91b6910160405180910390a250505050505050506113c06001609655565b5050565b6113cc612c55565b6113d4612f71565b600081116114185760405162461bcd60e51b8152602060048201526011602482015270155b9cdd185ad94e880c08185b5bdd5b9d607a1b6044820152606401610fd5565b600061142333611b9a565b9050818110156114665760405162461bcd60e51b815260206004820152600e60248201526d416d6f756e74203e207374616b6560901b6044820152606401610fd5565b61146e613066565b6114783333612cae565b50600061148483610e8b565b905060006127106102595461271061149c91906156cd565b6114a690846156b6565b6114b091906156a2565b90506114bc33856133eb565b80156114cb576114cb8161352e565b604080518281526020810186905233917ff960dbf9e5d0682f7a298ed974e33a28b4464914b7a2bfac12ae419a9afeb280910160405180910390a25050506115136001609655565b50565b600082815261012c602052604090206001015461153281612c4b565b61153c83836136c1565b505050565b6000806101f35461155c9190600160a01b900460ff166156e0565b905090565b6001600160a01b03811633146115d15760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610fd5565b6113c08282613748565b6001600160a01b037f000000000000000000000000979f300aa23e1073b28773fd38f0114e2c8b85811630036116235760405162461bcd60e51b8152600401610fd5906156f9565b7f000000000000000000000000979f300aa23e1073b28773fd38f0114e2c8b85816001600160a01b031661166c600080516020615c53833981519152546001600160a01b031690565b6001600160a01b0316146116925760405162461bcd60e51b8152600401610fd590615745565b61169b816137b0565b60408051600080825260208201909252611513918391906137c7565b600033610ea68185856116ca8383612818565b6116d49190615657565b612af3565b6116e1612c55565b6116eb6000613932565b6116f56001609655565b565b694f574e45525f524f4c4560b01b61170e81612c4b565b611513613a98565b6001600160a01b03811660009081526102676020908152604080832081518083019092528054825260010154918101919091528161175384611b9a565b90508060000361176557505192915050565b60006117716101c35490565b905060006c0c9f2c9cd04674edea4000000061025c60009054906101000a90046001600160a01b03166001600160a01b031663eded3fda6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117fb9190615791565b61180591906156b6565b9050600061181383836156a2565b610265546118219190615657565b90506c0c9f2c9cd04674edea4000000085602001518261184191906156cd565b61184b90866156b6565b61185591906156a2565b85516118619190615657565b979650505050505050565b6001600160a01b037f000000000000000000000000979f300aa23e1073b28773fd38f0114e2c8b85811630036118b45760405162461bcd60e51b8152600401610fd5906156f9565b7f000000000000000000000000979f300aa23e1073b28773fd38f0114e2c8b85816001600160a01b03166118fd600080516020615c53833981519152546001600160a01b031690565b6001600160a01b0316146119235760405162461bcd60e51b8152600401610fd590615745565b61192c826137b0565b6113c0828260016137c7565b6c474f5645524e4f525f524f4c4560981b61195281612c4b565b5061025d9290925561025e5561026055565b6c474f5645524e4f525f524f4c4560981b61197e81612c4b565b6102635483106119bd5760405162461bcd60e51b815260206004820152600a602482015269125b9d985b1a5908125160b21b6044820152606401610fd5565b600083815261026660205260409020546102645481906119de908590615657565b6119e891906156cd565b61026455600084815261026660205260409081902084815590517f772c4dd6aa65f9df35ad1651832145634a54ecbc75b6409a0f982e7dc88e45d491611a359160019091019086906157aa565b60405180910390a150505050565b6000306001600160a01b037f000000000000000000000000979f300aa23e1073b28773fd38f0114e2c8b85811614611ae35760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610fd5565b50600080516020615c5383398151915290565b694f574e45525f524f4c4560b01b611b0d81612c4b565b61025a80546001600160a01b0319166001600160a01b0384169081179091556040519081527f699887cd555c0c7e02df97f2ac6fe2db97cd0418f47a782b7ffa6fcfa0c96743906020015b60405180910390a15050565b60405162461bcd60e51b8152602060048201526008602482015267191a5cd8589b195960c21b6044820152600090606401610fd5565b6001600160a01b031660009081526101c1602052604090205490565b6c474f5645524e4f525f524f4c4560981b611bd081612c4b565b6000611bdc6102635490565b905060005b81811015611db357600081815261026660205260408120549003611dab576000818152610266602052604081206001018054611c1c906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611c48906154cc565b8015611c955780601f10611c6a57610100808354040283529160200191611c95565b820191906000526020600020905b815481529060010190602001808311611c7857829003601f168201915b505050505090506000611ca88230612fb8565b50905080600003611da857600061026883604051611cc69190615506565b908152604051908190036020019020805491151560ff199092169190911790556000611cf36001866156cd565b6000818152610266602052604080822087835291208154815591925090600180820190611d229084018261583e565b50505060008181526102666020526040812081815590611d456001830182614fed565b50507f53344ca00b011ca20d3dc9f1bb71ed60e097b598b9f35482879138cc15f28ef983604051611d7691906150b5565b60405180910390a184611d8881615911565b95505083600003611d9b57505050611be1565b611da484615911565b9350505b50505b600101611be1565b506000610261819055610262556102635550565b694f574e45525f524f4c4560b01b611dde81612c4b565b611513613aeb565b6c474f5645524e4f525f524f4c4560981b611e0081612c4b565b6102635484108015611e1457506102635483105b611e4d5760405162461bcd60e51b815260206004820152600a602482015269125b9d985b1a5908125160b21b6044820152606401610fd5565b6000610266600086815260200190815260200160002060405180604001604052908160008201548152602001600182018054611e88906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611eb4906154cc565b8015611f015780601f10611ed657610100808354040283529160200191611f01565b820191906000526020600020905b815481529060010190602001808311611ee457829003601f168201915b50505050508152505090506000610266600086815260200190815260200160002060405180604001604052908160008201548152602001600182018054611f47906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611f73906154cc565b8015611fc05780601f10611f9557610100808354040283529160200191611fc0565b820191906000526020600020905b815481529060010190602001808311611fa357829003601f168201915b50505050508152505090506000611fdb836020015130612fb8565b915050808511156120185760405162461bcd60e51b815260206004820152600760248201526608505b5bdd5b9d60ca1b6044820152606401610fd5565b612020613066565b60006120358460200151846020015188613b29565b90506001811515146120595760405162461bcd60e51b8152600401610fd590615928565b7f4b81c788046a326390b0432cf535dffbfc0ba3b5f1bf9bfbf9f5b1533d335cb9846020015184602001518889604051612096949392919061594f565b60405180910390a15050505050505050565b600091825261012c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606101c58054610e08906154cc565b600033816120f28286612818565b9050838110156121525760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610fd5565b61215f8286868403612af3565b506001949350505050565b600033610ea6818585612db9565b612180612c55565b612188612f71565b600082116121ca5760405162461bcd60e51b815260206004820152600f60248201526e14dd185ad94e880c08185b5bdd5b9d608a1b6044820152606401610fd5565b6001811515146121db5760006121dd565b815b34146122145760405162461bcd60e51b8152602060048201526006602482015265085d985b1a5960d21b6044820152606401610fd5565b61025e54612220610db2565b61222a9084615657565b11156122675760405162461bcd60e51b815260206004820152600c60248201526b05374616b653a203e204361760a41b6044820152606401610fd5565b61226f613066565b6122793333612cae565b50801515600003612361576040516323b872dd60e01b8152336004820152306024820152604481018390527380b5a32e4f032b2a058b4f29ec95eefeeb87adcd906323b872dd90606401600060405180830381600087803b1580156122dd57600080fd5b505af11580156122f1573d6000803e3d6000fd5b505060405163f3fef3a360e01b8152306004820152602481018590527380b5a32e4f032b2a058b4f29ec95eefeeb87adcd925063f3fef3a39150604401600060405180830381600087803b15801561234857600080fd5b505af115801561235c573d6000803e3d6000fd5b505050505b600061236c8361259a565b9050612378338261331c565b61238183613b98565b604080518481526020810183905233917f5af417134f72a9d41143ace85b0a26dce6f550f894f2cbc1eeee8810603d91b6910160405180910390a2506113c06001609655565b6000610dbd826001612abb565b694f574e45525f524f4c4560b01b6123eb81612c4b565b61025c80546001600160a01b0319166001600160a01b0384169081179091556040519081527fe37acc13f5ed9d0cc83c2842e093fe5a494d5b8fb5b1db06356b327081832f5290602001611b58565b600054610100900460ff161580801561245a5750600054600160ff909116105b806124745750303b158015612474575060005460ff166001145b6124d75760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610fd5565b6000805460ff1916600117905580156124fa576000805461ff0019166101001790555b61254a846040518060400160405280600f81526020016e29ba30b5b2b210232c102a37b5b2b760891b815250604051806040016040528060048152602001630a6e88cb60e31b8152508686613dbd565b612552613df1565b8015612594576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602001611a35565b50505050565b6000610dbd826000612c18565b6000610dbd6125b583611b9a565b6000612abb565b694f574e45525f524f4c4560b01b6125d381612c4b565b6001600160a01b0382166126205760405162461bcd60e51b815260206004820152601460248201527353656e6420746f207a65726f206164647265737360601b6044820152606401610fd5565b6001600160a01b03841615612648576126436001600160a01b0385168385613e18565b612594565b60405182906000906001600160a01b0383169086908381818185875af1925050503d8060008114612695576040519150601f19603f3d011682016040523d82523d6000602084013e61269a565b606091505b50509050806126bb5760405162461bcd60e51b8152600401610fd590615988565b505050505050565b694f574e45525f524f4c4560b01b6126da81612c4b565b61025b80546001600160a01b0319166001600160a01b0384169081179091556040519081527ff30aa7cab072f507cbc1b4906dcc281e649884fded6a818238e407dee53bf0ba90602001611b58565b600082815261012c602052604090206001015461274581612c4b565b61153c8383613748565b61025a546001600160a01b031633146127a35760405162461bcd60e51b815260206004820152601660248201527513db9b1e4815995cdd195911960818d85b8818d85b1b60521b6044820152606401610fd5565b6040513390600090829084908381818185875af1925050503d80600081146127e7576040519150601f19603f3d011682016040523d82523d6000602084013e6127ec565b606091505b505090508061153c5760405162461bcd60e51b8152600401610fd590615988565b6000610dbd82611b9a565b6001600160a01b0391821660009081526101c26020908152604080832093909416825291909152205490565b61284c612c55565b612854612f71565b6116eb613066565b61025c546040805163f7c618c160e01b815290516000926001600160a01b03169163f7c618c19160048083019260209291908290030181865afa1580156128a7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155c91906159b3565b60008060006128da6102635490565b905060005b818110156129b3576000818152610266602052604081206001018054612904906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054612930906154cc565b801561297d5780601f106129525761010080835404028352916020019161297d565b820191906000526020600020905b81548152906001019060200180831161296057829003601f168201915b5050505050905060006129908230613e6a565b905061299c8186615657565b9450505080806129ab9061563e565b9150506128df565b50610256546129c29083615657565b9250505090565b60008060006129d86102635490565b905060005b81811015612ab3576000818152610266602052604081206001018054612a02906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054612a2e906154cc565b8015612a7b5780601f10612a5057610100808354040283529160200191612a7b565b820191906000526020600020905b815481529060010190602001808311612a5e57829003601f168201915b505050505090506000612a8e8230612fb8565b9150612a9c90508186615657565b945050508080612aab9061563e565b9150506129dd565b509092915050565b600080612ac86101c35490565b90508015612ae957612ae4612adb610db2565b859083866132bf565b612aeb565b835b949350505050565b6001600160a01b038316612b555760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610fd5565b6001600160a01b038216612bb65760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610fd5565b6001600160a01b0383811660008181526101c2602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600080612c256101c35490565b9050831580612c32575080155b612ae957612ae481612c42610db2565b869190866132bf565b6115138133613f16565b600260965403612ca75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610fd5565b6002609655565b6000612cb983613932565b6001600160a01b0383166000908152610267602052604081208054918155908015612aeb57612cfb8482612ceb61285c565b6001600160a01b03169190613e18565b604080516001600160a01b0387168152602081018390527f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4910160405180910390a1949350505050565b6000612d518484612818565b905060001981146125945781811015612dac5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610fd5565b6125948484848403612af3565b6001600160a01b038316612e1d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610fd5565b6001600160a01b038216612e7f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610fd5565b612e8a838383613f6f565b6001600160a01b03831660009081526101c1602052604090205481811015612f035760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610fd5565b6001600160a01b0380851660008181526101c1602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612f649086815260200190565b60405180910390a3612594565b61018f5460ff16156116f55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610fd5565b6000808080611003612fca8787613f89565b604051612fd79190615506565b600060405180830381855afa9150503d8060008114613012576040519150601f19603f3d011682016040523d82523d6000602084013e613017565b606091505b509150915061305082826040518060400160405280601181526020017019195b1959d85d1a5bdb8819985a5b1959607a1b815250613fd0565b61305981614024565b9350935050509250929050565b61306e61404a565b6102568054600091829055610257549091906127109061308e90846156b6565b61309891906156a2565b9050600061271061025854846130ae91906156b6565b6130b891906156a2565b9050806130c583856156cd565b6130cf91906156cd565b92506130da83613b98565b61025b546040516001600160a01b03909116903390600090839086908381818185875af1925050503d806000811461312e576040519150601f19603f3d011682016040523d82523d6000602084013e613133565b606091505b505090506000826001600160a01b03168560405160006040518083038185875af1925050503d8060008114613184576040519150601f19603f3d011682016040523d82523d6000602084013e613189565b606091505b505090508180156131975750805b6131b35760405162461bcd60e51b8152600401610fd590615988565b604080518881526020810188905290810186905233907f26d9e92b9fa4eb064465ecae8eb30c511a5f35fc85e1128cb964013f336fee939060600160405180910390a250505050505050565b600080808061100361321389898989614162565b6040516132209190615506565b6000604051808303816000865af19150503d806000811461325d576040519150601f19603f3d011682016040523d82523d6000602084013e613262565b606091505b50915091506132a782826040518060400160405280601981526020017f7472616e7366657246726f6d536861726573206661696c656400000000000000815250613fd0565b6132b081614024565b93509350505094509492505050565b6000806132cd8686866141af565b905060018360028111156132e3576132e36159d0565b1480156133005750600084806132fb576132fb61568c565b868809115b1561331357613310600182615657565b90505b95945050505050565b6001600160a01b0382166133725760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610fd5565b61337e60008383613f6f565b806101c360008282546133919190615657565b90915550506001600160a01b03821660008181526101c160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b03821661344b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610fd5565b61345782600083613f6f565b6001600160a01b03821660009081526101c16020526040902054818110156134cc5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610fd5565b6001600160a01b03831660008181526101c16020908152604080832086860390556101c380548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6040805160a0810182526102615481526102625460208201819052610263549282018390526102645460608301526102655460808301529091600084905060008060006102605488106135c857600061358860028a6156a2565b90506135948782614299565b92506135a083866156cd565b9450856135ae886001615657565b6135b891906159e6565b96506135c48285615657565b9350505b831561360f576135d88685614299565b91506135e482856156cd565b9350846135f2876001615657565b6135fc91906159e6565b95506136088184615657565b92506135c8565b61025a546001600160a01b031663285c7317338a61363042621baf80615657565b6040516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091526044820152606401600060405180830381600087803b15801561367e57600080fd5b505af1158015613692573d6000803e3d6000fd5b5050506102628790555061025680548491906000906136b2908490615657565b90915550505050505050505050565b6136cb82826120a8565b6113c057600082815261012c602090815260408083206001600160a01b03851684529091529020805460ff191660011790556137043390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61375282826120a8565b156113c057600082815261012c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b694f574e45525f524f4c4560b01b6113c081612c4b565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156137fa5761153c83614430565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015613854575060408051601f3d908101601f1916820190925261385191810190615791565b60015b6138b75760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610fd5565b600080516020615c5383398151915281146139265760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610fd5565b5061153c8383836144cc565b61025c546040805163e4fc6b6d60e01b815290516000926001600160a01b03169163e4fc6b6d916004808301926020929190829003018187875af115801561397e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139a29190615791565b905060006139b06101c35490565b6102655490915081158015906139c65750600083115b15613a0057816139e36c0c9f2c9cd04674edea40000000856156b6565b6139ed91906156a2565b6139f79082615657565b61026581905590505b80600003613a0e5750505050565b6001600160a01b03841615612594576001600160a01b03841660009081526102676020526040812090613a4086611b9a565b905060006c0c9f2c9cd04674edea40000000836001015485613a6291906156cd565b613a6c90846156b6565b613a7691906156a2565b90506000818460000154613a8a9190615657565b845550505060010155505050565b613aa06144f1565b61018f805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b613af3612f71565b61018f805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613ace3390565b604051637711363360e11b81526000906110039063ee226c6690613b55908790879087906004016159fa565b6020604051808303816000875af1158015613b74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612aeb9190615a30565b6040805160a0810182526102615480825261026254602083015261026354928201839052610264546060830181905261026554608084015291926000613bdc610db2565b90506000613be98761453b565b90506000613bf782896156a2565b90508760005b8115613dab576000610266600089815260200190815260200160002060405180604001604052908160008201548152602001600182018054613c3e906154cc565b80601f0160208091040260200160405190810160405280929190818152602001828054613c6a906154cc565b8015613cb75780601f10613c8c57610100808354040283529160200191613cb7565b820191906000526020600020905b815481529060010190602001808311613c9a57829003601f168201915b5050509190925250508151919250889050613cd38a6001615657565b613cdd91906159e6565b985080600003613cee575050613bfd565b61025e548710613d0057839250613d57565b6000613d10836020015130612fb8565b91505060008b61025e5484613d2591906156b6565b613d2f91906156a2565b9050808210613d415750505050613bfd565b868611613d5057859450613d54565b8694505b50505b6000613d678360200151856145ad565b9050600181151514613d8b5760405162461bcd60e51b8152600401610fd590615928565b613d958489615657565b9750613da184866156cd565b9450505050613bfd565b50505061026193909355505050505050565b613dc685614660565b613dd08484614690565b613dd86146c1565b613de0613df1565b613dea82826146f0565b5050505050565b600054610100900460ff166116f55760405162461bcd60e51b8152600401610fd590615a4d565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261153c908490614786565b60008080611003613e7b868661485b565b604051613e889190615506565b600060405180830381855afa9150503d8060008114613ec3576040519150601f19603f3d011682016040523d82523d6000602084013e613ec8565b606091505b5091509150613f0d82826040518060400160405280601881526020017f64656c65676174696f6e52657761726473206661696c65640000000000000000815250613fd0565b613313816148a2565b613f2082826120a8565b6113c057613f2d816148b9565b613f388360206148cb565b604051602001613f49929190615a98565b60408051601f198184030181529082905262461bcd60e51b8252610fd5916004016150b5565b613f77612f71565b613f8083613932565b61153c82613932565b60608282604051602401613f9e929190615b0d565b60408051601f198184030181529190526020810180516001600160e01b031663d5c498eb60e01b179052905092915050565b8261153c57600082806020019051810190613feb9190615b37565b9050600182511015614011578060405162461bcd60e51b8152600401610fd591906150b5565b8181604051602001613f49929190615ba5565b6000806000808480602001905181019061403e9190615be2565b90969095509350505050565b6000806140576102635490565b905060005b81811015614145576000818152610266602052604081206001018054614081906154cc565b80601f01602080910402602001604051908101604052809291908181526020018280546140ad906154cc565b80156140fa5780601f106140cf576101008083540402835291602001916140fa565b820191906000526020600020905b8154815290600101906020018083116140dd57829003601f168201915b50505050509050600061410d8230613e6a565b9050801561413057600061412083614a67565b905061412c8187615657565b9550505b5050808061413d9061563e565b91505061405c565b508161025660008282546141599190615657565b90915550505050565b60608484848460405160240161417b9493929190615c06565b60408051601f198184030181529190526020810180516001600160e01b031663dc6ffc7d60e01b1790529050949350505050565b60008080600019858709858702925082811083820303915050806000036141e9578382816141df576141df61568c565b04925050506111d6565b8084116142305760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b6044820152606401610fd5565b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b60008281526102666020526040812060010180548291614340916142bc906154cc565b80601f01602080910402602001604051908101604052809291908181526020018280546142e8906154cc565b80156143355780601f1061430a57610100808354040283529160200191614335565b820191906000526020600020905b81548152906001019060200180831161431857829003601f168201915b505050505030612fb8565b9150600090508115612aeb5783821061435a57508261435d565b50805b6000858152610266602052604081206001018054614403919061437f906154cc565b80601f01602080910402602001604051908101604052809291908181526020018280546143ab906154cc565b80156143f85780601f106143cd576101008083540402835291602001916143f8565b820191906000526020600020905b8154815290600101906020018083116143db57829003601f168201915b505050505083614b06565b90506001811515146144275760405162461bcd60e51b8152600401610fd590615928565b50949350505050565b6001600160a01b0381163b61449d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610fd5565b600080516020615c5383398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6144d583614b30565b6000825111806144e25750805b1561153c576125948383614b70565b61018f5460ff166116f55760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610fd5565b60008080614551670de0b6b3a7640000856156a2565b9050600061455f6102635490565b90505b600a821061458957614575600a836156a2565b9150826145818161563e565b935050614562565b82156145a25780831161459c5782613313565b80613313565b600195945050505050565b6000814710156145f65760405162461bcd60e51b8152602060048201526014602482015273696e73756666696369656e742062616c616e636560601b6044820152606401610fd5565b604051636d78803560e01b815261100390636d7880359061461d908690869060040161566a565b6020604051808303816000875af115801561463c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d69190615a30565b600054610100900460ff166146875760405162461bcd60e51b8152600401610fd590615a4d565b61151381614b95565b600054610100900460ff166146b75760405162461bcd60e51b8152600401610fd590615a4d565b6113c08282614c1b565b600054610100900460ff166146e85760405162461bcd60e51b8152600401610fd590615a4d565b6116f5614c5d565b614707694f574e45525f524f4c4560b01b836136c1565b6147216c474f5645524e4f525f524f4c4560981b826136c1565b614738694f574e45525f524f4c4560b01b80614c91565b61475f6c474f5645524e4f525f524f4c4560981b694f574e45525f524f4c4560b01b614c91565b6113c06c4f50455241544f525f524f4c4560981b694f574e45525f524f4c4560b01b614c91565b60006147db826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614cdd9092919063ffffffff16565b90508051600014806147fc5750808060200190518101906147fc9190615a30565b61153c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610fd5565b60608282604051602401614870929190615b0d565b60408051601f198184030181529190526020810180516001600160e01b03166328d7a89d60e11b179052905092915050565b600080828060200190518101906111d69190615791565b6060610dbd6001600160a01b03831660145b606060006148da8360026156b6565b6148e5906002615657565b67ffffffffffffffff8111156148fd576148fd61513b565b6040519080825280601f01601f191660200182016040528015614927576020820181803683370190505b509050600360fc1b8160008151811061494257614942615c3c565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061497157614971615c3c565b60200101906001600160f81b031916908160001a90535060006149958460026156b6565b6149a0906001615657565b90505b6001811115614a18576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106149d4576149d4615c3c565b1a60f81b8282815181106149ea576149ea615c3c565b60200101906001600160f81b031916908160001a90535060049490941c93614a1181615911565b90506149a3565b5083156111d65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610fd5565b60008080611003614a7785614cec565b604051614a849190615506565b6000604051808303816000865af19150503d8060008114614ac1576040519150601f19603f3d011682016040523d82523d6000602084013e614ac6565b606091505b5091509150614afd82826040518060400160405280600f81526020016e1dda5d1a191c985dc819985a5b1959608a1b815250613fd0565b612aeb816148a2565b60405163de2b345160e01b81526000906110039063de2b34519061461d908690869060040161566a565b614b3981614430565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606111d68383604051806060016040528060278152602001615c7360279139614d2f565b600054610100900460ff16614bbc5760405162461bcd60e51b8152600401610fd590615a4d565b600080614bc883614da7565b9150915081614bd8576012614bda565b805b6101f380546001600160a01b039095166001600160a01b031960ff93909316600160a01b02929092166001600160a81b031990951694909417179092555050565b600054610100900460ff16614c425760405162461bcd60e51b8152600401610fd590615a4d565b6101c4614c4f8382615568565b506101c561153c8282615568565b600054610100900460ff16614c845760405162461bcd60e51b8152600401610fd590615a4d565b61018f805460ff19169055565b600082815261012c6020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6060612aeb8484600085614e83565b606081604051602401614cff91906150b5565b60408051601f198184030181529190526020810180516001600160e01b03166318fdb3e160e11b17905292915050565b6060600080856001600160a01b031685604051614d4c9190615506565b600060405180830381855af49150503d8060008114614d87576040519150601f19603f3d011682016040523d82523d6000602084013e614d8c565b606091505b5091509150614d9d86838387614f4f565b9695505050505050565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b17905290516000918291829182916001600160a01b03871691614dee91615506565b600060405180830381855afa9150503d8060008114614e29576040519150601f19603f3d011682016040523d82523d6000602084013e614e2e565b606091505b5091509150818015614e4257506020815110155b15614e7657600081806020019051810190614e5d9190615791565b905060ff8111614e74576001969095509350505050565b505b5060009485945092505050565b606082471015614ee45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610fd5565b600080866001600160a01b03168587604051614f009190615506565b60006040518083038185875af1925050503d8060008114614f3d576040519150601f19603f3d011682016040523d82523d6000602084013e614f42565b606091505b5091509150611861878383875b60608315614fbe578251600003614fb7576001600160a01b0385163b614fb75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610fd5565b5081612aeb565b612aeb8383815115614fd35781518083602001fd5b8060405162461bcd60e51b8152600401610fd591906150b5565b508054614ff9906154cc565b6000825580601f10615009575050565b601f01602090049060005260206000209081019061151391905b808211156150375760008155600101615023565b5090565b60006020828403121561504d57600080fd5b81356001600160e01b0319811681146111d657600080fd5b60005b83811015615080578181015183820152602001615068565b50506000910152565b600081518084526150a1816020860160208601615065565b601f01601f19169290920160200192915050565b6020815260006111d66020830184615089565b6000602082840312156150da57600080fd5b5035919050565b6001600160a01b038116811461151357600080fd5b6000806040838503121561510957600080fd5b8235615114816150e1565b946020939093013593505050565b828152604060208201526000612aeb6040830184615089565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561517a5761517a61513b565b604052919050565b600067ffffffffffffffff82111561519c5761519c61513b565b50601f01601f191660200190565b60006151bd6151b884615182565b615151565b90508281528383830111156151d157600080fd5b828260208301376000602084830101529392505050565b600082601f8301126151f957600080fd5b6111d6838335602085016151aa565b6000806040838503121561521b57600080fd5b823567ffffffffffffffff81111561523257600080fd5b61523e858286016151e8565b95602094909401359450505050565b60006020828403121561525f57600080fd5b81356111d6816150e1565b60008060006060848603121561527f57600080fd5b505081359360208301359350604090920135919050565b6000806000606084860312156152ab57600080fd5b83356152b6816150e1565b925060208401356152c6816150e1565b929592945050506040919091013590565b600080604083850312156152ea57600080fd5b8235915060208301356152fc816150e1565b809150509250929050565b6000806040838503121561531a57600080fd5b8235615325816150e1565b9150602083013567ffffffffffffffff81111561534157600080fd5b8301601f8101851361535257600080fd5b615361858235602084016151aa565b9150509250929050565b6000806040838503121561537e57600080fd5b50508035926020909101359150565b60006020828403121561539f57600080fd5b813567ffffffffffffffff8111156153b657600080fd5b612aeb848285016151e8565b801515811461151357600080fd5b600080604083850312156153e357600080fd5b8235915060208301356152fc816153c2565b60008060006060848603121561540a57600080fd5b83359250602084013561541c816150e1565b9150604084013561542c816150e1565b809150509250925092565b60008060006060848603121561544c57600080fd5b8335615457816150e1565b9250602084013561541c816150e1565b60008060006060848603121561547c57600080fd5b8335615487816150e1565b925060208401359150604084013561542c816150e1565b600080604083850312156154b157600080fd5b82356154bc816150e1565b915060208301356152fc816150e1565b600181811c908216806154e057607f821691505b60208210810361550057634e487b7160e01b600052602260045260246000fd5b50919050565b60008251615518818460208701615065565b9190910192915050565b601f82111561153c57600081815260208120601f850160051c810160208610156155495750805b601f850160051c820191505b818110156126bb57828155600101615555565b815167ffffffffffffffff8111156155825761558261513b565b6155968161559084546154cc565b84615522565b602080601f8311600181146155cb57600084156155b35750858301515b600019600386901b1c1916600185901b1785556126bb565b600085815260208120601f198616915b828110156155fa578886015182559484019460019091019084016155db565b50858210156156185787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b60006001820161565057615650615628565b5060010190565b80820180821115610dbd57610dbd615628565b60408152600061567d6040830185615089565b90508260208301529392505050565b634e487b7160e01b600052601260045260246000fd5b6000826156b1576156b161568c565b500490565b8082028115828204841417610dbd57610dbd615628565b81810381811115610dbd57610dbd615628565b60ff8181168382160190811115610dbd57610dbd615628565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6000602082840312156157a357600080fd5b5051919050565b6040815260008084546157bc816154cc565b80604086015260606001808416600081146157de57600181146157f857615829565b60ff1985168884015283151560051b880183019550615829565b8960005260208060002060005b868110156158205781548b8201870152908401908201615805565b8a018501975050505b50505050506020929092019290925292915050565b818103615849575050565b61585382546154cc565b67ffffffffffffffff81111561586b5761586b61513b565b6158798161559084546154cc565b6000601f8211600181146158ad57600083156158955750848201545b600019600385901b1c1916600184901b178455613dea565b600085815260209020601f19841690600086815260209020845b838110156158e757828601548255600195860195909101906020016158c7565b50858310156156185793015460001960f8600387901b161c19169092555050600190811b01905550565b60008161592057615920615628565b506000190190565b6020808252600d908201526c19195b1959d85d194819985a5b609a1b604082015260600190565b6080815260006159626080830187615089565b82810360208401526159748187615089565b604084019590955250506060015292915050565b60208082526011908201527008cc2d2d8cac840e8de40e6cadcc8408cb607b1b604082015260600190565b6000602082840312156159c557600080fd5b81516111d6816150e1565b634e487b7160e01b600052602160045260246000fd5b6000826159f5576159f561568c565b500690565b606081526000615a0d6060830186615089565b8281036020840152615a1f8186615089565b915050826040830152949350505050565b600060208284031215615a4257600080fd5b81516111d6816153c2565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615ad0816017850160208801615065565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615b01816028840160208801615065565b01602801949350505050565b604081526000615b206040830185615089565b905060018060a01b03831660208301529392505050565b600060208284031215615b4957600080fd5b815167ffffffffffffffff811115615b6057600080fd5b8201601f81018413615b7157600080fd5b8051615b7f6151b882615182565b818152856020838501011115615b9457600080fd5b613313826020830160208601615065565b60008351615bb7818460208801615065565b6101d160f51b9083019081528351615bd6816002840160208801615065565b01600201949350505050565b60008060408385031215615bf557600080fd5b505080516020909101519092909150565b608081526000615c196080830187615089565b6001600160a01b0395861660208401529390941660408201526060015292915050565b634e487b7160e01b600052603260045260246000fdfe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220d195029dad2032c3ad7620272a57da64c9efdbbec2570db9aaf7c506ec8e430b64736f6c63430008120033