Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
Subvault
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
/**
* @title Subvault
* @notice This contract manages a USDC vault where users can stake USDC to receive
* Subvault Token Shares (STS). STS represent a proportional claim on the USDC held
* within the vault. Staking can be done with optional lock periods (90 or 180 days).
* STS tokens are non-transferable and can only be obtained by staking USDC and redeemed
* back for USDC by unstaking after any applicable lock period.
* @dev The contract owner is intended to be a multisig wallet, ensuring decentralized control
* over administrative functions like pausing, upgrading, and setting oracle addresses.
* Withdrawals of the underlying USDC for property acquisitions via the
* `withdrawForAcquisition` function are governed by off-chain DAO voting processes,
* ensuring community oversight over capital deployment. This contract utilizes
* OpenZeppelin standard contracts for security best practices including upgradeability (UUPS),
* ownership control, pausing capabilities, and reentrancy protection.
*/
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface SanctionsList {
function isSanctioned(address addr) external view returns (bool);
}
contract Subvault is Initializable, ERC20Upgradeable, ERC20BurnableUpgradeable, OwnableUpgradeable, ReentrancyGuardUpgradeable, PausableUpgradeable, UUPSUpgradeable {
using SafeERC20Upgradeable for IERC20Upgradeable;
IERC20Upgradeable public usdc;
address public sanctionsOracleAddress;
uint256 public totalUsdcStaked;
uint256 public constant STAKING_PERIOD_0_DAYS = 0 days;
uint256 public constant STAKING_PERIOD_3_MONTHS = 90 days;
uint256 public constant STAKING_PERIOD_6_MONTHS = 180 days;
struct StakeRecord { uint256 stsShares; uint256 durationDays; uint256 lockEndTime; bool active; }
mapping(address => StakeRecord[]) public userStakeRecords;
event Stake(address indexed user, uint256 usdcAmount, uint256 stsSharesMinted, uint256 durationDays, uint256 stakeIndex);
event Unstake(address indexed user, uint256 stakeIndex, uint256 stsSharesBurnt, uint256 usdcAmountReturned);
event TokensRescued(address indexed tokenAddress, address indexed recipient, uint256 amount);
event AcquisitionWithdrawal(address indexed recipient, uint256 amount);
event SanctionsOracleUpdated(address indexed oldOracle, address indexed newOracle);
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {
_disableInitializers();
}
function initialize(address _usdc, address _initialSanctionsOracle) public initializer {
require(_usdc != address(0) && _initialSanctionsOracle != address(0));
__ERC20_init("Subvault Token Share", "STS");
__ERC20Burnable_init();
__Ownable_init();
__ReentrancyGuard_init();
__Pausable_init();
__UUPSUpgradeable_init();
usdc = IERC20Upgradeable(_usdc);
sanctionsOracleAddress = _initialSanctionsOracle;
}
function _authorizeUpgrade(address) internal override onlyOwner {}
modifier checkSanctions(address _account) {
require(!SanctionsList(sanctionsOracleAddress).isSanctioned(_account), "Sanctioned");
_;
}
function pause() external onlyOwner { _pause(); }
function unpause() external onlyOwner { _unpause(); }
function setSanctionsOracleAddress(address _new) external onlyOwner {
require(_new != address(0));
emit SanctionsOracleUpdated(sanctionsOracleAddress, _new);
sanctionsOracleAddress = _new;
}
function withdrawForAcquisition(address to, uint256 amount) external onlyOwner {
require(to != address(0) && amount > 0 && totalUsdcStaked >= amount, "Invalid");
totalUsdcStaked -= amount;
usdc.safeTransfer(to, amount);
emit AcquisitionWithdrawal(to, amount);
}
function rescueMistakenTokens(address tokenAddress, uint256 amount, address to) external onlyOwner {
require(tokenAddress != address(usdc) && tokenAddress != address(this) && to != address(0) && amount > 0, "Invalid");
IERC20Upgradeable(tokenAddress).safeTransfer(to, amount);
emit TokensRescued(tokenAddress, to, amount);
}
function stake(uint256 amount, uint256 durationDays) external nonReentrant whenNotPaused checkSanctions(msg.sender) {
require(amount > 0 && (durationDays == 0 || durationDays == 90 || durationDays == 180), "Invalid");
uint256 supply = totalSupply();
uint256 balance = totalUsdcStaked;
uint256 stsToMint;
if (supply == 0) {
stsToMint = amount * (10 ** (decimals() - 6));
} else {
stsToMint = (amount * supply) / balance;
require(stsToMint > 0, "Stake too small");
}
uint256 lockEnd = block.timestamp + (durationDays == 90 ? STAKING_PERIOD_3_MONTHS : durationDays == 180 ? STAKING_PERIOD_6_MONTHS : STAKING_PERIOD_0_DAYS);
userStakeRecords[msg.sender].push(StakeRecord(stsToMint, durationDays, lockEnd, true));
_mint(msg.sender, stsToMint);
usdc.safeTransferFrom(msg.sender, address(this), amount);
totalUsdcStaked += amount;
emit Stake(msg.sender, amount, stsToMint, durationDays, userStakeRecords[msg.sender].length - 1);
}
function unstake(uint256 stakeIndex) external nonReentrant whenNotPaused checkSanctions(msg.sender) {
StakeRecord storage sr = userStakeRecords[msg.sender][stakeIndex];
require(sr.active && block.timestamp >= sr.lockEndTime, "Locked or inactive");
uint256 burnAmt = sr.stsShares;
require(burnAmt > 0, "No shares");
uint256 supply = totalSupply();
uint256 balance = totalUsdcStaked;
require(supply > 0, "No supply");
uint256 usdcOut = balance > 0 ? (burnAmt * balance) / supply : 0;
sr.active = false; sr.stsShares = 0;
_burn(msg.sender, burnAmt);
if (usdcOut > 0) {
totalUsdcStaked -= usdcOut;
usdc.safeTransfer(msg.sender, usdcOut);
}
emit Unstake(msg.sender, stakeIndex, burnAmt, usdcOut);
}
function _beforeTokenTransfer(address from, address to, uint256) internal override {
super._beforeTokenTransfer(from, to, 0);
require(from == address(0) || to == address(0), "Non-transferable");
}
function getTotalVaultedUSDC() external view returns (uint256) { return totalUsdcStaked; }
function getCurrentValueOfActiveStakes(address user) external view returns (uint256) {
uint256 activeShares;
for (uint256 i; i < userStakeRecords[user].length; i++) {
if (userStakeRecords[user][i].active) activeShares += userStakeRecords[user][i].stsShares;
}
uint256 supply = totalSupply();
if (activeShares == 0 || supply == 0) return 0;
return (activeShares * totalUsdcStaked) / supply;
}
function getUserStakeRecordsPaginated(address user, uint256 cursor, uint256 limit) external view returns (StakeRecord[] memory records, uint256 nextCursor) {
uint256 total = userStakeRecords[user].length;
if (cursor >= total || limit == 0) return (new StakeRecord[](0), total);
uint256 end = cursor + limit > total ? total : cursor + limit;
records = new StakeRecord[](end - cursor);
for (uint256 i = cursor; i < end; i++) records[i - cursor] = userStakeRecords[user][i];
return (records, end);
}
function getUserStakeCount(address user) external view returns (uint256) { return userStakeRecords[user].length; }
function getStakeRecord(address user, uint256 i) external view returns (StakeRecord memory) { return userStakeRecords[user][i]; }
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init() internal onlyInitializing {
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal onlyInitializing {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
/**
* @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;
}// 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);
}// 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);
}// 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);
}// 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 1
bytes32 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;
}
/**
* @dev Stores a new address in the EIP1967 implementation slot.
*/
function _setImplementation(address newImplementation) private {
require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract");
StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
}
/**
* @dev Perform implementation upgrade
*
* Emits an {Upgraded} event.
*/
function _upgradeTo(address newImplementation) internal {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
}
/**
* @dev Perform implementation upgrade with additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {
_upgradeTo(newImplementation);
if (data.length > 0 || forceCall) {
AddressUpgradeable.functionDelegateCall(newImplementation, data);
}
}
/**
* @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {
// Upgrades from old implementations will perform a rollback test. This test requires the new
// implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
// this special case will break upgrade paths from old UUPS implementation to new ones.
if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {
_setImplementation(newImplementation);
} else {
try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {
require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
} catch {
revert("ERC1967Upgrade: new implementation is not UUPS");
}
_upgradeToAndCall(newImplementation, data, forceCall);
}
}
/**
* @dev Storage slot with the admin of the contract.
* This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
/**
* @dev Returns the current admin.
*/
function _getAdmin() internal view returns (address) {
return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 admin slot.
*/
function _setAdmin(address newAdmin) private {
require(newAdmin != address(0), "ERC1967: new admin is the zero address");
StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
}
/**
* @dev Changes the admin of the proxy.
*
* Emits an {AdminChanged} event.
*/
function _changeAdmin(address newAdmin) internal {
emit AdminChanged(_getAdmin(), newAdmin);
_setAdmin(newAdmin);
}
/**
* @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
* This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
*/
bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;
/**
* @dev Returns the current beacon.
*/
function _getBeacon() internal view returns (address) {
return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;
}
/**
* @dev Stores a new beacon in the EIP1967 beacon slot.
*/
function _setBeacon(address newBeacon) private {
require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract");
require(
AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),
"ERC1967: beacon implementation is not a contract"
);
StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;
}
/**
* @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
* not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
*
* Emits a {BeaconUpgraded} event.
*/
function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {
_setBeacon(newBeacon);
emit BeaconUpgraded(newBeacon);
if (data.length > 0 || forceCall) {
AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), 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;
}// 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]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
* @custom:oz-retyped-from bool
*/
uint8 private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint8 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts.
*
* Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
* constructor.
*
* Emits an {Initialized} event.
*/
modifier initializer() {
bool isTopLevelCall = !_initializing;
require(
(isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
"Initializable: contract is already initialized"
);
_initialized = 1;
if (isTopLevelCall) {
_initializing = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* A reinitializer may be used after the original initialization step. This is essential to configure modules that
* are added through upgrades and that require initialization.
*
* When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
* cannot be nested. If one is invoked in the context of another, execution will revert.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*
* WARNING: setting the version to 255 will prevent any future reinitialization.
*
* Emits an {Initialized} event.
*/
modifier reinitializer(uint8 version) {
require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
_initialized = version;
_initializing = true;
_;
_initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*
* Emits an {Initialized} event the first time it is successfully executed.
*/
function _disableInitializers() internal virtual {
require(!_initializing, "Initializable: contract is initializing");
if (_initialized != type(uint8).max) {
_initialized = type(uint8).max;
emit Initialized(type(uint8).max);
}
}
/**
* @dev Returns the highest version that has been initialized. See {reinitializer}.
*/
function _getInitializedVersion() internal view returns (uint8) {
return _initialized;
}
/**
* @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
*/
function _isInitializing() internal view returns (bool) {
return _initializing;
}
}// 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-assignment
address 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");
_;
}
/**
* @dev Check that the execution is not being performed through a delegate call. This allows a function to be
* callable on the implementing contract but not through proxies.
*/
modifier notDelegated() {
require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall");
_;
}
/**
* @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the
* implementation. It is used to validate the implementation's compatibility when performing an upgrade.
*
* 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. This is guaranteed by the `notDelegated` modifier.
*/
function proxiableUUID() external view virtual override notDelegated returns (bytes32) {
return _IMPLEMENTATION_SLOT;
}
/**
* @dev Upgrade the implementation of the proxy to `newImplementation`.
*
* Calls {_authorizeUpgrade}.
*
* Emits an {Upgraded} event.
*
* @custom:oz-upgrades-unsafe-allow-reachable delegatecall
*/
function upgradeTo(address newImplementation) public virtual onlyProxy {
_authorizeUpgrade(newImplementation);
_upgradeToAndCallUUPS(newImplementation, new bytes(0), false);
}
/**
* @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
* encoded in `data`.
*
* Calls {_authorizeUpgrade}.
*
* Emits an {Upgraded} event.
*
* @custom:oz-upgrades-unsafe-allow-reachable delegatecall
*/
function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {
_authorizeUpgrade(newImplementation);
_upgradeToAndCallUUPS(newImplementation, data, true);
}
/**
* @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
* {upgradeTo} and {upgradeToAndCall}.
*
* Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
*
* ```solidity
* function _authorizeUpgrade(address) internal override onlyOwner {}
* ```
*/
function _authorizeUpgrade(address newImplementation) internal virtual;
/**
* @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;
}// 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;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
require(!paused(), "Pausable: paused");
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
require(paused(), "Pausable: not paused");
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
/**
* @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;
}// 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();
}
function __ReentrancyGuard_init_unchained() internal onlyInitializing {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
/**
* @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;
}// 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;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing {
__ERC20_init_unchained(name_, symbol_);
}
function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
/**
* @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[45] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)
pragma solidity ^0.8.0;
import "../ERC20Upgradeable.sol";
import "../../../utils/ContextUpgradeable.sol";
import "../../../proxy/utils/Initializable.sol";
/**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/
abstract contract ERC20BurnableUpgradeable is Initializable, ContextUpgradeable, ERC20Upgradeable {
function __ERC20Burnable_init() internal onlyInitializing {
}
function __ERC20Burnable_init_unchained() internal onlyInitializing {
}
/**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
/**
* @dev Destroys `amount` tokens from `account`, deducting from the caller's
* allowance.
*
* See {ERC20-_burn} and {ERC20-allowance}.
*
* Requirements:
*
* - the caller must have allowance for ``accounts``'s tokens of at least
* `amount`.
*/
function burnFrom(address account, uint256 amount) public virtual {
_spendAllowance(account, _msgSender(), amount);
_burn(account, amount);
}
/**
* @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;
}// 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);
}// 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,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface 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);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20Upgradeable token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
* 0 before setting it to a non-zero value.
*/
function forceApprove(IERC20Upgradeable token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
* Revert on invalid signature.
*/
function safePermit(
IERC20PermitUpgradeable token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20Upgradeable token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return
success && (returndata.length == 0 || abi.decode(returndata, (bool))) && AddressUpgradeable.isContract(address(token));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library 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
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts 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;
}// 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;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
struct StringSlot {
string value;
}
struct BytesSlot {
bytes value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` with member `value` located at `slot`.
*/
function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` representation of the string storage pointer `store`.
*/
function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
/**
* @dev Returns an `BytesSlot` with member `value` located at `slot`.
*/
function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
*/
function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AcquisitionWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOracle","type":"address"},{"indexed":true,"internalType":"address","name":"newOracle","type":"address"}],"name":"SanctionsOracleUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"usdcAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stsSharesMinted","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"durationDays","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakeIndex","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensRescued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakeIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stsSharesBurnt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usdcAmountReturned","type":"uint256"}],"name":"Unstake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"STAKING_PERIOD_0_DAYS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKING_PERIOD_3_MONTHS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKING_PERIOD_6_MONTHS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getCurrentValueOfActiveStakes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"i","type":"uint256"}],"name":"getStakeRecord","outputs":[{"components":[{"internalType":"uint256","name":"stsShares","type":"uint256"},{"internalType":"uint256","name":"durationDays","type":"uint256"},{"internalType":"uint256","name":"lockEndTime","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"internalType":"struct Subvault.StakeRecord","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalVaultedUSDC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserStakeCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"cursor","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"getUserStakeRecordsPaginated","outputs":[{"components":[{"internalType":"uint256","name":"stsShares","type":"uint256"},{"internalType":"uint256","name":"durationDays","type":"uint256"},{"internalType":"uint256","name":"lockEndTime","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"internalType":"struct Subvault.StakeRecord[]","name":"records","type":"tuple[]"},{"internalType":"uint256","name":"nextCursor","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_usdc","type":"address"},{"internalType":"address","name":"_initialSanctionsOracle","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"rescueMistakenTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sanctionsOracleAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_new","type":"address"}],"name":"setSanctionsOracleAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"durationDays","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUsdcStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stakeIndex","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"usdc","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userStakeRecords","outputs":[{"internalType":"uint256","name":"stsShares","type":"uint256"},{"internalType":"uint256","name":"durationDays","type":"uint256"},{"internalType":"uint256","name":"lockEndTime","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawForAcquisition","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff168152503480156200004457600080fd5b50620000556200005b60201b60201c565b62000205565b600060019054906101000a900460ff1615620000ae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000a590620001a8565b60405180910390fd5b60ff801660008054906101000a900460ff1660ff16146200011f5760ff6000806101000a81548160ff021916908360ff1602179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860ff604051620001169190620001e8565b60405180910390a15b565b600082825260208201905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320696e69746960008201527f616c697a696e6700000000000000000000000000000000000000000000000000602082015250565b60006200019060278362000121565b91506200019d8262000132565b604082019050919050565b60006020820190508181036000830152620001c38162000181565b9050919050565b600060ff82169050919050565b620001e281620001ca565b82525050565b6000602082019050620001ff6000830184620001d7565b92915050565b608051615e6d6200023d600039600081816111ed0152818161127b015281816116c40152818161175201526118020152615e6d6000f3fe60806040526004361061023b5760003560e01c80635cf67dca1161012e578063a9059cbb116100ab578063e8b2b0e01161006f578063e8b2b0e01461087e578063ea0eab4e146108bb578063ebacafc8146108f8578063ed73bf0114610921578063f2fde38b1461094c5761023b565b8063a9059cbb14610785578063accf1cb7146107c2578063dd62ed3e146107eb578063e1f779ee14610828578063e27c1d27146108535761023b565b80637b0472f0116100f25780637b0472f0146106b25780638456cb59146106db5780638da5cb5b146106f257806395d89b411461071d578063a457c2d7146107485761023b565b80635cf67dca146105df57806370a082311461060a578063715018a61461064757806379cc67901461065e5780637a7b85a1146106875761023b565b8063313ce567116101bc57806342966c681161018057806342966c681461051b578063485cc955146105445780634f1ef2861461056d57806352d1902d146105895780635c975abb146105b45761023b565b8063313ce567146104485780633659cfe614610473578063395093511461049c5780633e413bee146104d95780633f4ba83a146105045761023b565b806318160ddd1161020357806318160ddd1461033c5780631b545a17146103675780631f1162dd146103a457806323b872dd146103e25780632e17de781461041f5761023b565b8063017c8f5114610240578063017fd4e61461028057806306fdde03146102ab578063095ea7b3146102d65780630c01f7e214610313575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613d0d565b610975565b6040516102779493929190613d77565b60405180910390f35b34801561028c57600080fd5b506102956109d0565b6040516102a29190613dbc565b60405180910390f35b3480156102b757600080fd5b506102c06109d5565b6040516102cd9190613e67565b60405180910390f35b3480156102e257600080fd5b506102fd60048036038101906102f89190613d0d565b610a67565b60405161030a9190613e89565b60405180910390f35b34801561031f57600080fd5b5061033a60048036038101906103359190613ea4565b610a8a565b005b34801561034857600080fd5b50610351610b8d565b60405161035e9190613dbc565b60405180910390f35b34801561037357600080fd5b5061038e60048036038101906103899190613ea4565b610b97565b60405161039b9190613dbc565b60405180910390f35b3480156103b057600080fd5b506103cb60048036038101906103c69190613ed1565b610be4565b6040516103d9929190614046565b60405180910390f35b3480156103ee57600080fd5b5061040960048036038101906104049190614076565b610e2d565b6040516104169190613e89565b60405180910390f35b34801561042b57600080fd5b50610446600480360381019061044191906140c9565b610e5c565b005b34801561045457600080fd5b5061045d6111e2565b60405161046a9190614112565b60405180910390f35b34801561047f57600080fd5b5061049a60048036038101906104959190613ea4565b6111eb565b005b3480156104a857600080fd5b506104c360048036038101906104be9190613d0d565b611373565b6040516104d09190613e89565b60405180910390f35b3480156104e557600080fd5b506104ee6113aa565b6040516104fb919061418c565b60405180910390f35b34801561051057600080fd5b506105196113d1565b005b34801561052757600080fd5b50610542600480360381019061053d91906140c9565b6113e3565b005b34801561055057600080fd5b5061056b600480360381019061056691906141a7565b6113f7565b005b6105876004803603810190610582919061431c565b6116c2565b005b34801561059557600080fd5b5061059e6117fe565b6040516105ab9190614391565b60405180910390f35b3480156105c057600080fd5b506105c96118b7565b6040516105d69190613e89565b60405180910390f35b3480156105eb57600080fd5b506105f46118ce565b60405161060191906143bb565b60405180910390f35b34801561061657600080fd5b50610631600480360381019061062c9190613ea4565b6118f5565b60405161063e9190613dbc565b60405180910390f35b34801561065357600080fd5b5061065c61193e565b005b34801561066a57600080fd5b5061068560048036038101906106809190613d0d565b611952565b005b34801561069357600080fd5b5061069c611972565b6040516106a99190613dbc565b60405180910390f35b3480156106be57600080fd5b506106d960048036038101906106d491906143d6565b611979565b005b3480156106e757600080fd5b506106f0611da2565b005b3480156106fe57600080fd5b50610707611db4565b60405161071491906143bb565b60405180910390f35b34801561072957600080fd5b50610732611dde565b60405161073f9190613e67565b60405180910390f35b34801561075457600080fd5b5061076f600480360381019061076a9190613d0d565b611e70565b60405161077c9190613e89565b60405180910390f35b34801561079157600080fd5b506107ac60048036038101906107a79190613d0d565b611ee7565b6040516107b99190613e89565b60405180910390f35b3480156107ce57600080fd5b506107e960048036038101906107e49190613d0d565b611f0a565b005b3480156107f757600080fd5b50610812600480360381019061080d91906141a7565b612057565b60405161081f9190613dbc565b60405180910390f35b34801561083457600080fd5b5061083d6120de565b60405161084a9190613dbc565b60405180910390f35b34801561085f57600080fd5b506108686120e9565b6040516108759190613dbc565b60405180910390f35b34801561088a57600080fd5b506108a560048036038101906108a09190613d0d565b6120f0565b6040516108b2919061446b565b60405180910390f35b3480156108c757600080fd5b506108e260048036038101906108dd9190613ea4565b6121a4565b6040516108ef9190613dbc565b60405180910390f35b34801561090457600080fd5b5061091f600480360381019061091a9190614486565b612340565b005b34801561092d57600080fd5b506109366124ec565b6040516109439190613dbc565b60405180910390f35b34801561095857600080fd5b50610973600480360381019061096e9190613ea4565b6124f3565b005b610194602052816000526040600020818154811061099257600080fd5b9060005260206000209060040201600091509150508060000154908060010154908060020154908060030160009054906101000a900460ff16905084565b600081565b6060603680546109e490614508565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1090614508565b8015610a5d5780601f10610a3257610100808354040283529160200191610a5d565b820191906000526020600020905b815481529060010190602001808311610a4057829003601f168201915b5050505050905090565b600080610a72612576565b9050610a7f81858561257e565b600191505092915050565b610a92612747565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610acb57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1661019260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f9dc7a30661b0eef899195a36c42f80a98cafd90e68cd8a50af361f2b04916dbf60405160405180910390a38061019260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000603554905090565b600061019460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b606060008061019460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905090508085101580610c3e5750600084145b15610ca357600067ffffffffffffffff811115610c5e57610c5d6141f1565b5b604051908082528060200260200182016040528015610c9757816020015b610c84613c3b565b815260200190600190039081610c7c5790505b50819250925050610e25565b6000818587610cb29190614568565b11610cc8578486610cc39190614568565b610cca565b815b90508581610cd8919061459c565b67ffffffffffffffff811115610cf157610cf06141f1565b5b604051908082528060200260200182016040528015610d2a57816020015b610d17613c3b565b815260200190600190039081610d0f5790505b50935060008690505b81811015610e1b5761019460008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208181548110610d8d57610d8c6145d0565b5b90600052602060002090600402016040518060800160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff161515151581525050858883610dec919061459c565b81518110610dfd57610dfc6145d0565b5b60200260200101819052508080610e13906145ff565b915050610d33565b5083819350935050505b935093915050565b600080610e38612576565b9050610e458582856127c5565b610e50858585612851565b60019150509392505050565b610e64612aca565b610e6c612b19565b3361019260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663df592f7d826040518263ffffffff1660e01b8152600401610ec991906143bb565b602060405180830381865afa158015610ee6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0a9190614673565b15610f4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f41906146ec565b60405180910390fd5b600061019460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208381548110610f9e57610f9d6145d0565b5b906000526020600020906004020190508060030160009054906101000a900460ff168015610fd0575080600201544210155b61100f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100690614758565b60405180910390fd5b6000816000015490506000811161105b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611052906147c4565b60405180910390fd5b6000611065610b8d565b90506000610193549050600082116110b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a990614830565b60405180910390fd5b60008082116110c25760006110da565b8282856110cf9190614850565b6110d991906148c1565b5b905060008560030160006101000a81548160ff0219169083151502179055506000856000018190555061110d3385612b63565b600081111561117f57806101936000828254611129919061459c565b9250508190555061117e338261019160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612d329092919063ffffffff16565b5b3373ffffffffffffffffffffffffffffffffffffffff167ffbd65cfd6de1493db337385c0712095397ecbd0504df64b861cdfceb80c7b4228886846040516111c9939291906148f2565b60405180910390a25050505050506111df612db8565b50565b60006012905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1603611279576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112709061499b565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166112b8612dc2565b73ffffffffffffffffffffffffffffffffffffffff161461130e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130590614a2d565b60405180910390fd5b61131781612e19565b61137081600067ffffffffffffffff811115611336576113356141f1565b5b6040519080825280601f01601f1916602001820160405280156113685781602001600182028036833780820191505090505b506000612e24565b50565b60008061137e612576565b905061139f8185856113908589612057565b61139a9190614568565b61257e565b600191505092915050565b61019160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6113d9612747565b6113e1612f92565b565b6113f46113ee612576565b82612b63565b50565b60008060019054906101000a900460ff161590508080156114285750600160008054906101000a900460ff1660ff16105b80611455575061143730612ff5565b1580156114545750600160008054906101000a900460ff1660ff16145b5b611494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148b90614abf565b60405180910390fd5b60016000806101000a81548160ff021916908360ff16021790555080156114d1576001600060016101000a81548160ff0219169083151502179055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561153b5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b61154457600080fd5b6115b86040518060400160405280601481526020017f5375627661756c7420546f6b656e2053686172650000000000000000000000008152506040518060400160405280600381526020017f5354530000000000000000000000000000000000000000000000000000000000815250613018565b6115c0613075565b6115c86130c6565b6115d061311f565b6115d8613178565b6115e06131d1565b8261019160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508161019260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080156116bd5760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860016040516116b49190614b1a565b60405180910390a15b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1603611750576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117479061499b565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661178f612dc2565b73ffffffffffffffffffffffffffffffffffffffff16146117e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117dc90614a2d565b60405180910390fd5b6117ee82612e19565b6117fa82826001612e24565b5050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161461188e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188590614ba7565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b600060fb60009054906101000a900460ff16905090565b61019260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000603360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611946612747565b6119506000613222565b565b6119648261195e612576565b836127c5565b61196e8282612b63565b5050565b62ed4e0081565b611981612aca565b611989612b19565b3361019260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663df592f7d826040518263ffffffff1660e01b81526004016119e691906143bb565b602060405180830381865afa158015611a03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a279190614673565b15611a67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5e906146ec565b60405180910390fd5b600083118015611a8d57506000821480611a815750605a82145b80611a8c575060b482145b5b611acc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac390614c13565b60405180910390fd5b6000611ad6610b8d565b905060006101935490506000808303611b1b576006611af36111e2565b611afd9190614c33565b600a611b099190614d9b565b86611b149190614850565b9050611b78565b818387611b289190614850565b611b3291906148c1565b905060008111611b77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6e90614e32565b60405180910390fd5b5b6000605a8614611b9b5760b48614611b91576000611b96565b62ed4e005b611ba0565b6276a7005b42611bab9190614568565b905061019460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020604051806080016040528084815260200188815260200183815260200160011515815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff0219169083151502179055505050611c8433836132e8565b611cd433308961019160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661343f909392919063ffffffff16565b866101936000828254611ce79190614568565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f2720efa4b2dd4f3f8a347da3cbd290a522e9432da9072c5b8e6300496fdde282888489600161019460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050611d79919061459c565b604051611d899493929190614e52565b60405180910390a25050505050611d9e612db8565b5050565b611daa612747565b611db26134c8565b565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060378054611ded90614508565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1990614508565b8015611e665780601f10611e3b57610100808354040283529160200191611e66565b820191906000526020600020905b815481529060010190602001808311611e4957829003601f168201915b5050505050905090565b600080611e7b612576565b90506000611e898286612057565b905083811015611ece576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec590614f09565b60405180910390fd5b611edb828686840361257e565b60019250505092915050565b600080611ef2612576565b9050611eff818585612851565b600191505092915050565b611f12612747565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015611f4f5750600081115b8015611f5e5750806101935410155b611f9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9490614c13565b60405180910390fd5b806101936000828254611fb0919061459c565b92505081905550612005828261019160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612d329092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167fafa684e44f8da2ef240119a86f1a98ae5fde03b81d052a4fc3027aec843867518260405161204b9190613dbc565b60405180910390a25050565b6000603460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061019354905090565b6101935481565b6120f8613c3b565b61019460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811061214a576121496145d0565b5b90600052602060002090600402016040518060800160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff161515151581525050905092915050565b60008060005b61019460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490508110156122f05761019460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208181548110612247576122466145d0565b5b906000526020600020906004020160030160009054906101000a900460ff16156122dd5761019460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081815481106122bd576122bc6145d0565b5b906000526020600020906004020160000154826122da9190614568565b91505b80806122e8906145ff565b9150506121aa565b5060006122fb610b8d565b9050600082148061230c5750600081145b1561231c5760009250505061233b565b80610193548361232c9190614850565b61233691906148c1565b925050505b919050565b612348612747565b61019160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156123d357503073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b801561240c5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b80156124185750600082115b612457576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244e90614c13565b60405180910390fd5b61248281838573ffffffffffffffffffffffffffffffffffffffff16612d329092919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f77023e19c7343ad491fd706c36335ca0e738340a91f29b1fd81e2673d44896c4846040516124df9190613dbc565b60405180910390a3505050565b6276a70081565b6124fb612747565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361256a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256190614f9b565b60405180910390fd5b61257381613222565b50565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036125ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e49061502d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361265c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612653906150bf565b60405180910390fd5b80603460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161273a9190613dbc565b60405180910390a3505050565b61274f612576565b73ffffffffffffffffffffffffffffffffffffffff1661276d611db4565b73ffffffffffffffffffffffffffffffffffffffff16146127c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ba9061512b565b60405180910390fd5b565b60006127d18484612057565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461284b578181101561283d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283490615197565b60405180910390fd5b61284a848484840361257e565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128b790615229565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361292f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612926906152bb565b60405180910390fd5b61293a83838361352b565b6000603360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156129c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b89061534d565b60405180910390fd5b818103603360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081603360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612ab19190613dbc565b60405180910390a3612ac48484846135e2565b50505050565b600260c95403612b0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b06906153b9565b60405180910390fd5b600260c981905550565b612b216118b7565b15612b61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5890615425565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612bd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc9906154b7565b60405180910390fd5b612bde8260008361352b565b6000603360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612c65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c5c90615549565b60405180910390fd5b818103603360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081603560008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612d199190613dbc565b60405180910390a3612d2d836000846135e2565b505050565b612db38363a9059cbb60e01b8484604051602401612d51929190615569565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506135e7565b505050565b600160c981905550565b6000612df07f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6136af565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b612e21612747565b50565b612e507f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b6136b9565b60000160009054906101000a900460ff1615612e7457612e6f836136c3565b612f8d565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612edc57506040513d601f19601f82011682018060405250810190612ed991906155be565b60015b612f1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f129061565d565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114612f80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f77906156ef565b60405180910390fd5b50612f8c83838361377c565b5b505050565b612f9a6137a8565b600060fb60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612fde612576565b604051612feb91906143bb565b60405180910390a1565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16613067576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305e90615781565b60405180910390fd5b61307182826137f1565b5050565b600060019054906101000a900460ff166130c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130bb90615781565b60405180910390fd5b565b600060019054906101000a900460ff16613115576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161310c90615781565b60405180910390fd5b61311d613864565b565b600060019054906101000a900460ff1661316e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161316590615781565b60405180910390fd5b6131766138c5565b565b600060019054906101000a900460ff166131c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131be90615781565b60405180910390fd5b6131cf61391e565b565b600060019054906101000a900460ff16613220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161321790615781565b60405180910390fd5b565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613357576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161334e906157ed565b60405180910390fd5b6133636000838361352b565b80603560008282546133759190614568565b9250508190555080603360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516134279190613dbc565b60405180910390a361343b600083836135e2565b5050565b6134c2846323b872dd60e01b8585856040516024016134609392919061580d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506135e7565b50505050565b6134d0612b19565b600160fb60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613514612576565b60405161352191906143bb565b60405180910390a1565b6135378383600061398a565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061359e5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b6135dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135d490615890565b60405180910390fd5b505050565b505050565b6000613649826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661398f9092919063ffffffff16565b905060008151148061366b57508080602001905181019061366a9190614673565b5b6136aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136a190615922565b60405180910390fd5b505050565b6000819050919050565b6000819050919050565b6136cc81612ff5565b61370b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613702906159b4565b60405180910390fd5b806137387f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6136af565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b613785836139a7565b6000825111806137925750805b156137a3576137a183836139f6565b505b505050565b6137b06118b7565b6137ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137e690615a20565b60405180910390fd5b565b600060019054906101000a900460ff16613840576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161383790615781565b60405180910390fd5b816036908161384f9190615be2565b50806037908161385f9190615be2565b505050565b600060019054906101000a900460ff166138b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138aa90615781565b60405180910390fd5b6138c36138be612576565b613222565b565b600060019054906101000a900460ff16613914576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161390b90615781565b60405180910390fd5b600160c981905550565b600060019054906101000a900460ff1661396d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161396490615781565b60405180910390fd5b600060fb60006101000a81548160ff021916908315150217905550565b505050565b606061399e8484600085613a23565b90509392505050565b6139b0816136c3565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b6060613a1b8383604051806060016040528060278152602001615e1160279139613af0565b905092915050565b606082471015613a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a5f90615d26565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613a919190615d8d565b60006040518083038185875af1925050503d8060008114613ace576040519150601f19603f3d011682016040523d82523d6000602084013e613ad3565b606091505b5091509150613ae487838387613b76565b92505050949350505050565b60606000808573ffffffffffffffffffffffffffffffffffffffff1685604051613b1a9190615d8d565b600060405180830381855af49150503d8060008114613b55576040519150601f19603f3d011682016040523d82523d6000602084013e613b5a565b606091505b5091509150613b6b86838387613b76565b925050509392505050565b60608315613bd8576000835103613bd057613b9085612ff5565b613bcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bc690615df0565b60405180910390fd5b5b829050613be3565b613be28383613beb565b5b949350505050565b600082511115613bfe5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c329190613e67565b60405180910390fd5b60405180608001604052806000815260200160008152602001600081526020016000151581525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ca482613c79565b9050919050565b613cb481613c99565b8114613cbf57600080fd5b50565b600081359050613cd181613cab565b92915050565b6000819050919050565b613cea81613cd7565b8114613cf557600080fd5b50565b600081359050613d0781613ce1565b92915050565b60008060408385031215613d2457613d23613c6f565b5b6000613d3285828601613cc2565b9250506020613d4385828601613cf8565b9150509250929050565b613d5681613cd7565b82525050565b60008115159050919050565b613d7181613d5c565b82525050565b6000608082019050613d8c6000830187613d4d565b613d996020830186613d4d565b613da66040830185613d4d565b613db36060830184613d68565b95945050505050565b6000602082019050613dd16000830184613d4d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613e11578082015181840152602081019050613df6565b60008484015250505050565b6000601f19601f8301169050919050565b6000613e3982613dd7565b613e438185613de2565b9350613e53818560208601613df3565b613e5c81613e1d565b840191505092915050565b60006020820190508181036000830152613e818184613e2e565b905092915050565b6000602082019050613e9e6000830184613d68565b92915050565b600060208284031215613eba57613eb9613c6f565b5b6000613ec884828501613cc2565b91505092915050565b600080600060608486031215613eea57613ee9613c6f565b5b6000613ef886828701613cc2565b9350506020613f0986828701613cf8565b9250506040613f1a86828701613cf8565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613f5981613cd7565b82525050565b613f6881613d5c565b82525050565b608082016000820151613f846000850182613f50565b506020820151613f976020850182613f50565b506040820151613faa6040850182613f50565b506060820151613fbd6060850182613f5f565b50505050565b6000613fcf8383613f6e565b60808301905092915050565b6000602082019050919050565b6000613ff382613f24565b613ffd8185613f2f565b935061400883613f40565b8060005b838110156140395781516140208882613fc3565b975061402b83613fdb565b92505060018101905061400c565b5085935050505092915050565b600060408201905081810360008301526140608185613fe8565b905061406f6020830184613d4d565b9392505050565b60008060006060848603121561408f5761408e613c6f565b5b600061409d86828701613cc2565b93505060206140ae86828701613cc2565b92505060406140bf86828701613cf8565b9150509250925092565b6000602082840312156140df576140de613c6f565b5b60006140ed84828501613cf8565b91505092915050565b600060ff82169050919050565b61410c816140f6565b82525050565b60006020820190506141276000830184614103565b92915050565b6000819050919050565b600061415261414d61414884613c79565b61412d565b613c79565b9050919050565b600061416482614137565b9050919050565b600061417682614159565b9050919050565b6141868161416b565b82525050565b60006020820190506141a1600083018461417d565b92915050565b600080604083850312156141be576141bd613c6f565b5b60006141cc85828601613cc2565b92505060206141dd85828601613cc2565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61422982613e1d565b810181811067ffffffffffffffff82111715614248576142476141f1565b5b80604052505050565b600061425b613c65565b90506142678282614220565b919050565b600067ffffffffffffffff821115614287576142866141f1565b5b61429082613e1d565b9050602081019050919050565b82818337600083830152505050565b60006142bf6142ba8461426c565b614251565b9050828152602081018484840111156142db576142da6141ec565b5b6142e684828561429d565b509392505050565b600082601f830112614303576143026141e7565b5b81356143138482602086016142ac565b91505092915050565b6000806040838503121561433357614332613c6f565b5b600061434185828601613cc2565b925050602083013567ffffffffffffffff81111561436257614361613c74565b5b61436e858286016142ee565b9150509250929050565b6000819050919050565b61438b81614378565b82525050565b60006020820190506143a66000830184614382565b92915050565b6143b581613c99565b82525050565b60006020820190506143d060008301846143ac565b92915050565b600080604083850312156143ed576143ec613c6f565b5b60006143fb85828601613cf8565b925050602061440c85828601613cf8565b9150509250929050565b60808201600082015161442c6000850182613f50565b50602082015161443f6020850182613f50565b5060408201516144526040850182613f50565b5060608201516144656060850182613f5f565b50505050565b60006080820190506144806000830184614416565b92915050565b60008060006060848603121561449f5761449e613c6f565b5b60006144ad86828701613cc2565b93505060206144be86828701613cf8565b92505060406144cf86828701613cc2565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061452057607f821691505b602082108103614533576145326144d9565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061457382613cd7565b915061457e83613cd7565b925082820190508082111561459657614595614539565b5b92915050565b60006145a782613cd7565b91506145b283613cd7565b92508282039050818111156145ca576145c9614539565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061460a82613cd7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361463c5761463b614539565b5b600182019050919050565b61465081613d5c565b811461465b57600080fd5b50565b60008151905061466d81614647565b92915050565b60006020828403121561468957614688613c6f565b5b60006146978482850161465e565b91505092915050565b7f53616e6374696f6e656400000000000000000000000000000000000000000000600082015250565b60006146d6600a83613de2565b91506146e1826146a0565b602082019050919050565b60006020820190508181036000830152614705816146c9565b9050919050565b7f4c6f636b6564206f7220696e6163746976650000000000000000000000000000600082015250565b6000614742601283613de2565b915061474d8261470c565b602082019050919050565b6000602082019050818103600083015261477181614735565b9050919050565b7f4e6f207368617265730000000000000000000000000000000000000000000000600082015250565b60006147ae600983613de2565b91506147b982614778565b602082019050919050565b600060208201905081810360008301526147dd816147a1565b9050919050565b7f4e6f20737570706c790000000000000000000000000000000000000000000000600082015250565b600061481a600983613de2565b9150614825826147e4565b602082019050919050565b600060208201905081810360008301526148498161480d565b9050919050565b600061485b82613cd7565b915061486683613cd7565b925082820261487481613cd7565b9150828204841483151761488b5761488a614539565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006148cc82613cd7565b91506148d783613cd7565b9250826148e7576148e6614892565b5b828204905092915050565b60006060820190506149076000830186613d4d565b6149146020830185613d4d565b6149216040830184613d4d565b949350505050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b6000614985602c83613de2565b915061499082614929565b604082019050919050565b600060208201905081810360008301526149b481614978565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b6000614a17602c83613de2565b9150614a22826149bb565b604082019050919050565b60006020820190508181036000830152614a4681614a0a565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000614aa9602e83613de2565b9150614ab482614a4d565b604082019050919050565b60006020820190508181036000830152614ad881614a9c565b9050919050565b6000819050919050565b6000614b04614aff614afa84614adf565b61412d565b6140f6565b9050919050565b614b1481614ae9565b82525050565b6000602082019050614b2f6000830184614b0b565b92915050565b7f555550535570677261646561626c653a206d757374206e6f742062652063616c60008201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000602082015250565b6000614b91603883613de2565b9150614b9c82614b35565b604082019050919050565b60006020820190508181036000830152614bc081614b84565b9050919050565b7f496e76616c696400000000000000000000000000000000000000000000000000600082015250565b6000614bfd600783613de2565b9150614c0882614bc7565b602082019050919050565b60006020820190508181036000830152614c2c81614bf0565b9050919050565b6000614c3e826140f6565b9150614c49836140f6565b9250828203905060ff811115614c6257614c61614539565b5b92915050565b60008160011c9050919050565b6000808291508390505b6001851115614cbf57808604811115614c9b57614c9a614539565b5b6001851615614caa5780820291505b8081029050614cb885614c68565b9450614c7f565b94509492505050565b600082614cd85760019050614d94565b81614ce65760009050614d94565b8160018114614cfc5760028114614d0657614d35565b6001915050614d94565b60ff841115614d1857614d17614539565b5b8360020a915084821115614d2f57614d2e614539565b5b50614d94565b5060208310610133831016604e8410600b8410161715614d6a5782820a905083811115614d6557614d64614539565b5b614d94565b614d778484846001614c75565b92509050818404811115614d8e57614d8d614539565b5b81810290505b9392505050565b6000614da682613cd7565b9150614db1836140f6565b9250614dde7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484614cc8565b905092915050565b7f5374616b6520746f6f20736d616c6c0000000000000000000000000000000000600082015250565b6000614e1c600f83613de2565b9150614e2782614de6565b602082019050919050565b60006020820190508181036000830152614e4b81614e0f565b9050919050565b6000608082019050614e676000830187613d4d565b614e746020830186613d4d565b614e816040830185613d4d565b614e8e6060830184613d4d565b95945050505050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000614ef3602583613de2565b9150614efe82614e97565b604082019050919050565b60006020820190508181036000830152614f2281614ee6565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614f85602683613de2565b9150614f9082614f29565b604082019050919050565b60006020820190508181036000830152614fb481614f78565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615017602483613de2565b915061502282614fbb565b604082019050919050565b600060208201905081810360008301526150468161500a565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006150a9602283613de2565b91506150b48261504d565b604082019050919050565b600060208201905081810360008301526150d88161509c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615115602083613de2565b9150615120826150df565b602082019050919050565b6000602082019050818103600083015261514481615108565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000615181601d83613de2565b915061518c8261514b565b602082019050919050565b600060208201905081810360008301526151b081615174565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000615213602583613de2565b915061521e826151b7565b604082019050919050565b6000602082019050818103600083015261524281615206565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006152a5602383613de2565b91506152b082615249565b604082019050919050565b600060208201905081810360008301526152d481615298565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000615337602683613de2565b9150615342826152db565b604082019050919050565b600060208201905081810360008301526153668161532a565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006153a3601f83613de2565b91506153ae8261536d565b602082019050919050565b600060208201905081810360008301526153d281615396565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061540f601083613de2565b915061541a826153d9565b602082019050919050565b6000602082019050818103600083015261543e81615402565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006154a1602183613de2565b91506154ac82615445565b604082019050919050565b600060208201905081810360008301526154d081615494565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000615533602283613de2565b915061553e826154d7565b604082019050919050565b6000602082019050818103600083015261556281615526565b9050919050565b600060408201905061557e60008301856143ac565b61558b6020830184613d4d565b9392505050565b61559b81614378565b81146155a657600080fd5b50565b6000815190506155b881615592565b92915050565b6000602082840312156155d4576155d3613c6f565b5b60006155e2848285016155a9565b91505092915050565b7f45524331393637557067726164653a206e657720696d706c656d656e7461746960008201527f6f6e206973206e6f742055555053000000000000000000000000000000000000602082015250565b6000615647602e83613de2565b9150615652826155eb565b604082019050919050565b600060208201905081810360008301526156768161563a565b9050919050565b7f45524331393637557067726164653a20756e737570706f727465642070726f7860008201527f6961626c65555549440000000000000000000000000000000000000000000000602082015250565b60006156d9602983613de2565b91506156e48261567d565b604082019050919050565b60006020820190508181036000830152615708816156cc565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b600061576b602b83613de2565b91506157768261570f565b604082019050919050565b6000602082019050818103600083015261579a8161575e565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b60006157d7601f83613de2565b91506157e2826157a1565b602082019050919050565b60006020820190508181036000830152615806816157ca565b9050919050565b600060608201905061582260008301866143ac565b61582f60208301856143ac565b61583c6040830184613d4d565b949350505050565b7f4e6f6e2d7472616e7366657261626c6500000000000000000000000000000000600082015250565b600061587a601083613de2565b915061588582615844565b602082019050919050565b600060208201905081810360008301526158a98161586d565b9050919050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061590c602a83613de2565b9150615917826158b0565b604082019050919050565b6000602082019050818103600083015261593b816158ff565b9050919050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b600061599e602d83613de2565b91506159a982615942565b604082019050919050565b600060208201905081810360008301526159cd81615991565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615a0a601483613de2565b9150615a15826159d4565b602082019050919050565b60006020820190508181036000830152615a39816159fd565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302615aa27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615a65565b615aac8683615a65565b95508019841693508086168417925050509392505050565b6000615adf615ada615ad584613cd7565b61412d565b613cd7565b9050919050565b6000819050919050565b615af983615ac4565b615b0d615b0582615ae6565b848454615a72565b825550505050565b600090565b615b22615b15565b615b2d818484615af0565b505050565b5b81811015615b5157615b46600082615b1a565b600181019050615b33565b5050565b601f821115615b9657615b6781615a40565b615b7084615a55565b81016020851015615b7f578190505b615b93615b8b85615a55565b830182615b32565b50505b505050565b600082821c905092915050565b6000615bb960001984600802615b9b565b1980831691505092915050565b6000615bd28383615ba8565b9150826002028217905092915050565b615beb82613dd7565b67ffffffffffffffff811115615c0457615c036141f1565b5b615c0e8254614508565b615c19828285615b55565b600060209050601f831160018114615c4c5760008415615c3a578287015190505b615c448582615bc6565b865550615cac565b601f198416615c5a86615a40565b60005b82811015615c8257848901518255600182019150602085019450602081019050615c5d565b86831015615c9f5784890151615c9b601f891682615ba8565b8355505b6001600288020188555050505b505050505050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000615d10602683613de2565b9150615d1b82615cb4565b604082019050919050565b60006020820190508181036000830152615d3f81615d03565b9050919050565b600081519050919050565b600081905092915050565b6000615d6782615d46565b615d718185615d51565b9350615d81818560208601613df3565b80840191505092915050565b6000615d998284615d5c565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615dda601d83613de2565b9150615de582615da4565b602082019050919050565b60006020820190508181036000830152615e0981615dcd565b905091905056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212200c201d43f9311c6c492748dfc83660781a1acf8ab70ebf684511009f7c9ad1ad64736f6c63430008110033
Deployed Bytecode
0x60806040526004361061023b5760003560e01c80635cf67dca1161012e578063a9059cbb116100ab578063e8b2b0e01161006f578063e8b2b0e01461087e578063ea0eab4e146108bb578063ebacafc8146108f8578063ed73bf0114610921578063f2fde38b1461094c5761023b565b8063a9059cbb14610785578063accf1cb7146107c2578063dd62ed3e146107eb578063e1f779ee14610828578063e27c1d27146108535761023b565b80637b0472f0116100f25780637b0472f0146106b25780638456cb59146106db5780638da5cb5b146106f257806395d89b411461071d578063a457c2d7146107485761023b565b80635cf67dca146105df57806370a082311461060a578063715018a61461064757806379cc67901461065e5780637a7b85a1146106875761023b565b8063313ce567116101bc57806342966c681161018057806342966c681461051b578063485cc955146105445780634f1ef2861461056d57806352d1902d146105895780635c975abb146105b45761023b565b8063313ce567146104485780633659cfe614610473578063395093511461049c5780633e413bee146104d95780633f4ba83a146105045761023b565b806318160ddd1161020357806318160ddd1461033c5780631b545a17146103675780631f1162dd146103a457806323b872dd146103e25780632e17de781461041f5761023b565b8063017c8f5114610240578063017fd4e61461028057806306fdde03146102ab578063095ea7b3146102d65780630c01f7e214610313575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613d0d565b610975565b6040516102779493929190613d77565b60405180910390f35b34801561028c57600080fd5b506102956109d0565b6040516102a29190613dbc565b60405180910390f35b3480156102b757600080fd5b506102c06109d5565b6040516102cd9190613e67565b60405180910390f35b3480156102e257600080fd5b506102fd60048036038101906102f89190613d0d565b610a67565b60405161030a9190613e89565b60405180910390f35b34801561031f57600080fd5b5061033a60048036038101906103359190613ea4565b610a8a565b005b34801561034857600080fd5b50610351610b8d565b60405161035e9190613dbc565b60405180910390f35b34801561037357600080fd5b5061038e60048036038101906103899190613ea4565b610b97565b60405161039b9190613dbc565b60405180910390f35b3480156103b057600080fd5b506103cb60048036038101906103c69190613ed1565b610be4565b6040516103d9929190614046565b60405180910390f35b3480156103ee57600080fd5b5061040960048036038101906104049190614076565b610e2d565b6040516104169190613e89565b60405180910390f35b34801561042b57600080fd5b50610446600480360381019061044191906140c9565b610e5c565b005b34801561045457600080fd5b5061045d6111e2565b60405161046a9190614112565b60405180910390f35b34801561047f57600080fd5b5061049a60048036038101906104959190613ea4565b6111eb565b005b3480156104a857600080fd5b506104c360048036038101906104be9190613d0d565b611373565b6040516104d09190613e89565b60405180910390f35b3480156104e557600080fd5b506104ee6113aa565b6040516104fb919061418c565b60405180910390f35b34801561051057600080fd5b506105196113d1565b005b34801561052757600080fd5b50610542600480360381019061053d91906140c9565b6113e3565b005b34801561055057600080fd5b5061056b600480360381019061056691906141a7565b6113f7565b005b6105876004803603810190610582919061431c565b6116c2565b005b34801561059557600080fd5b5061059e6117fe565b6040516105ab9190614391565b60405180910390f35b3480156105c057600080fd5b506105c96118b7565b6040516105d69190613e89565b60405180910390f35b3480156105eb57600080fd5b506105f46118ce565b60405161060191906143bb565b60405180910390f35b34801561061657600080fd5b50610631600480360381019061062c9190613ea4565b6118f5565b60405161063e9190613dbc565b60405180910390f35b34801561065357600080fd5b5061065c61193e565b005b34801561066a57600080fd5b5061068560048036038101906106809190613d0d565b611952565b005b34801561069357600080fd5b5061069c611972565b6040516106a99190613dbc565b60405180910390f35b3480156106be57600080fd5b506106d960048036038101906106d491906143d6565b611979565b005b3480156106e757600080fd5b506106f0611da2565b005b3480156106fe57600080fd5b50610707611db4565b60405161071491906143bb565b60405180910390f35b34801561072957600080fd5b50610732611dde565b60405161073f9190613e67565b60405180910390f35b34801561075457600080fd5b5061076f600480360381019061076a9190613d0d565b611e70565b60405161077c9190613e89565b60405180910390f35b34801561079157600080fd5b506107ac60048036038101906107a79190613d0d565b611ee7565b6040516107b99190613e89565b60405180910390f35b3480156107ce57600080fd5b506107e960048036038101906107e49190613d0d565b611f0a565b005b3480156107f757600080fd5b50610812600480360381019061080d91906141a7565b612057565b60405161081f9190613dbc565b60405180910390f35b34801561083457600080fd5b5061083d6120de565b60405161084a9190613dbc565b60405180910390f35b34801561085f57600080fd5b506108686120e9565b6040516108759190613dbc565b60405180910390f35b34801561088a57600080fd5b506108a560048036038101906108a09190613d0d565b6120f0565b6040516108b2919061446b565b60405180910390f35b3480156108c757600080fd5b506108e260048036038101906108dd9190613ea4565b6121a4565b6040516108ef9190613dbc565b60405180910390f35b34801561090457600080fd5b5061091f600480360381019061091a9190614486565b612340565b005b34801561092d57600080fd5b506109366124ec565b6040516109439190613dbc565b60405180910390f35b34801561095857600080fd5b50610973600480360381019061096e9190613ea4565b6124f3565b005b610194602052816000526040600020818154811061099257600080fd5b9060005260206000209060040201600091509150508060000154908060010154908060020154908060030160009054906101000a900460ff16905084565b600081565b6060603680546109e490614508565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1090614508565b8015610a5d5780601f10610a3257610100808354040283529160200191610a5d565b820191906000526020600020905b815481529060010190602001808311610a4057829003601f168201915b5050505050905090565b600080610a72612576565b9050610a7f81858561257e565b600191505092915050565b610a92612747565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610acb57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1661019260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f9dc7a30661b0eef899195a36c42f80a98cafd90e68cd8a50af361f2b04916dbf60405160405180910390a38061019260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000603554905090565b600061019460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b606060008061019460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905090508085101580610c3e5750600084145b15610ca357600067ffffffffffffffff811115610c5e57610c5d6141f1565b5b604051908082528060200260200182016040528015610c9757816020015b610c84613c3b565b815260200190600190039081610c7c5790505b50819250925050610e25565b6000818587610cb29190614568565b11610cc8578486610cc39190614568565b610cca565b815b90508581610cd8919061459c565b67ffffffffffffffff811115610cf157610cf06141f1565b5b604051908082528060200260200182016040528015610d2a57816020015b610d17613c3b565b815260200190600190039081610d0f5790505b50935060008690505b81811015610e1b5761019460008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208181548110610d8d57610d8c6145d0565b5b90600052602060002090600402016040518060800160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff161515151581525050858883610dec919061459c565b81518110610dfd57610dfc6145d0565b5b60200260200101819052508080610e13906145ff565b915050610d33565b5083819350935050505b935093915050565b600080610e38612576565b9050610e458582856127c5565b610e50858585612851565b60019150509392505050565b610e64612aca565b610e6c612b19565b3361019260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663df592f7d826040518263ffffffff1660e01b8152600401610ec991906143bb565b602060405180830381865afa158015610ee6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0a9190614673565b15610f4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f41906146ec565b60405180910390fd5b600061019460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208381548110610f9e57610f9d6145d0565b5b906000526020600020906004020190508060030160009054906101000a900460ff168015610fd0575080600201544210155b61100f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100690614758565b60405180910390fd5b6000816000015490506000811161105b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611052906147c4565b60405180910390fd5b6000611065610b8d565b90506000610193549050600082116110b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a990614830565b60405180910390fd5b60008082116110c25760006110da565b8282856110cf9190614850565b6110d991906148c1565b5b905060008560030160006101000a81548160ff0219169083151502179055506000856000018190555061110d3385612b63565b600081111561117f57806101936000828254611129919061459c565b9250508190555061117e338261019160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612d329092919063ffffffff16565b5b3373ffffffffffffffffffffffffffffffffffffffff167ffbd65cfd6de1493db337385c0712095397ecbd0504df64b861cdfceb80c7b4228886846040516111c9939291906148f2565b60405180910390a25050505050506111df612db8565b50565b60006012905090565b7f000000000000000000000000bc69b64ab025d07c39780718ac3b2bc7dc5420ff73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1603611279576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112709061499b565b60405180910390fd5b7f000000000000000000000000bc69b64ab025d07c39780718ac3b2bc7dc5420ff73ffffffffffffffffffffffffffffffffffffffff166112b8612dc2565b73ffffffffffffffffffffffffffffffffffffffff161461130e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130590614a2d565b60405180910390fd5b61131781612e19565b61137081600067ffffffffffffffff811115611336576113356141f1565b5b6040519080825280601f01601f1916602001820160405280156113685781602001600182028036833780820191505090505b506000612e24565b50565b60008061137e612576565b905061139f8185856113908589612057565b61139a9190614568565b61257e565b600191505092915050565b61019160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6113d9612747565b6113e1612f92565b565b6113f46113ee612576565b82612b63565b50565b60008060019054906101000a900460ff161590508080156114285750600160008054906101000a900460ff1660ff16105b80611455575061143730612ff5565b1580156114545750600160008054906101000a900460ff1660ff16145b5b611494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148b90614abf565b60405180910390fd5b60016000806101000a81548160ff021916908360ff16021790555080156114d1576001600060016101000a81548160ff0219169083151502179055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561153b5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b61154457600080fd5b6115b86040518060400160405280601481526020017f5375627661756c7420546f6b656e2053686172650000000000000000000000008152506040518060400160405280600381526020017f5354530000000000000000000000000000000000000000000000000000000000815250613018565b6115c0613075565b6115c86130c6565b6115d061311f565b6115d8613178565b6115e06131d1565b8261019160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508161019260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080156116bd5760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860016040516116b49190614b1a565b60405180910390a15b505050565b7f000000000000000000000000bc69b64ab025d07c39780718ac3b2bc7dc5420ff73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1603611750576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117479061499b565b60405180910390fd5b7f000000000000000000000000bc69b64ab025d07c39780718ac3b2bc7dc5420ff73ffffffffffffffffffffffffffffffffffffffff1661178f612dc2565b73ffffffffffffffffffffffffffffffffffffffff16146117e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117dc90614a2d565b60405180910390fd5b6117ee82612e19565b6117fa82826001612e24565b5050565b60007f000000000000000000000000bc69b64ab025d07c39780718ac3b2bc7dc5420ff73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161461188e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188590614ba7565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b600060fb60009054906101000a900460ff16905090565b61019260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000603360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611946612747565b6119506000613222565b565b6119648261195e612576565b836127c5565b61196e8282612b63565b5050565b62ed4e0081565b611981612aca565b611989612b19565b3361019260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663df592f7d826040518263ffffffff1660e01b81526004016119e691906143bb565b602060405180830381865afa158015611a03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a279190614673565b15611a67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5e906146ec565b60405180910390fd5b600083118015611a8d57506000821480611a815750605a82145b80611a8c575060b482145b5b611acc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac390614c13565b60405180910390fd5b6000611ad6610b8d565b905060006101935490506000808303611b1b576006611af36111e2565b611afd9190614c33565b600a611b099190614d9b565b86611b149190614850565b9050611b78565b818387611b289190614850565b611b3291906148c1565b905060008111611b77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6e90614e32565b60405180910390fd5b5b6000605a8614611b9b5760b48614611b91576000611b96565b62ed4e005b611ba0565b6276a7005b42611bab9190614568565b905061019460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020604051806080016040528084815260200188815260200183815260200160011515815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff0219169083151502179055505050611c8433836132e8565b611cd433308961019160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661343f909392919063ffffffff16565b866101936000828254611ce79190614568565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f2720efa4b2dd4f3f8a347da3cbd290a522e9432da9072c5b8e6300496fdde282888489600161019460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050611d79919061459c565b604051611d899493929190614e52565b60405180910390a25050505050611d9e612db8565b5050565b611daa612747565b611db26134c8565b565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060378054611ded90614508565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1990614508565b8015611e665780601f10611e3b57610100808354040283529160200191611e66565b820191906000526020600020905b815481529060010190602001808311611e4957829003601f168201915b5050505050905090565b600080611e7b612576565b90506000611e898286612057565b905083811015611ece576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec590614f09565b60405180910390fd5b611edb828686840361257e565b60019250505092915050565b600080611ef2612576565b9050611eff818585612851565b600191505092915050565b611f12612747565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015611f4f5750600081115b8015611f5e5750806101935410155b611f9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9490614c13565b60405180910390fd5b806101936000828254611fb0919061459c565b92505081905550612005828261019160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612d329092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167fafa684e44f8da2ef240119a86f1a98ae5fde03b81d052a4fc3027aec843867518260405161204b9190613dbc565b60405180910390a25050565b6000603460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061019354905090565b6101935481565b6120f8613c3b565b61019460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811061214a576121496145d0565b5b90600052602060002090600402016040518060800160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff161515151581525050905092915050565b60008060005b61019460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490508110156122f05761019460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208181548110612247576122466145d0565b5b906000526020600020906004020160030160009054906101000a900460ff16156122dd5761019460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081815481106122bd576122bc6145d0565b5b906000526020600020906004020160000154826122da9190614568565b91505b80806122e8906145ff565b9150506121aa565b5060006122fb610b8d565b9050600082148061230c5750600081145b1561231c5760009250505061233b565b80610193548361232c9190614850565b61233691906148c1565b925050505b919050565b612348612747565b61019160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156123d357503073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b801561240c5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b80156124185750600082115b612457576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244e90614c13565b60405180910390fd5b61248281838573ffffffffffffffffffffffffffffffffffffffff16612d329092919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f77023e19c7343ad491fd706c36335ca0e738340a91f29b1fd81e2673d44896c4846040516124df9190613dbc565b60405180910390a3505050565b6276a70081565b6124fb612747565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361256a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256190614f9b565b60405180910390fd5b61257381613222565b50565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036125ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e49061502d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361265c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612653906150bf565b60405180910390fd5b80603460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161273a9190613dbc565b60405180910390a3505050565b61274f612576565b73ffffffffffffffffffffffffffffffffffffffff1661276d611db4565b73ffffffffffffffffffffffffffffffffffffffff16146127c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ba9061512b565b60405180910390fd5b565b60006127d18484612057565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461284b578181101561283d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283490615197565b60405180910390fd5b61284a848484840361257e565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128b790615229565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361292f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612926906152bb565b60405180910390fd5b61293a83838361352b565b6000603360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156129c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b89061534d565b60405180910390fd5b818103603360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081603360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612ab19190613dbc565b60405180910390a3612ac48484846135e2565b50505050565b600260c95403612b0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b06906153b9565b60405180910390fd5b600260c981905550565b612b216118b7565b15612b61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5890615425565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612bd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc9906154b7565b60405180910390fd5b612bde8260008361352b565b6000603360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612c65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c5c90615549565b60405180910390fd5b818103603360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081603560008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612d199190613dbc565b60405180910390a3612d2d836000846135e2565b505050565b612db38363a9059cbb60e01b8484604051602401612d51929190615569565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506135e7565b505050565b600160c981905550565b6000612df07f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6136af565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b612e21612747565b50565b612e507f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b6136b9565b60000160009054906101000a900460ff1615612e7457612e6f836136c3565b612f8d565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612edc57506040513d601f19601f82011682018060405250810190612ed991906155be565b60015b612f1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f129061565d565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114612f80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f77906156ef565b60405180910390fd5b50612f8c83838361377c565b5b505050565b612f9a6137a8565b600060fb60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612fde612576565b604051612feb91906143bb565b60405180910390a1565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16613067576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305e90615781565b60405180910390fd5b61307182826137f1565b5050565b600060019054906101000a900460ff166130c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130bb90615781565b60405180910390fd5b565b600060019054906101000a900460ff16613115576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161310c90615781565b60405180910390fd5b61311d613864565b565b600060019054906101000a900460ff1661316e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161316590615781565b60405180910390fd5b6131766138c5565b565b600060019054906101000a900460ff166131c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131be90615781565b60405180910390fd5b6131cf61391e565b565b600060019054906101000a900460ff16613220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161321790615781565b60405180910390fd5b565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613357576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161334e906157ed565b60405180910390fd5b6133636000838361352b565b80603560008282546133759190614568565b9250508190555080603360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516134279190613dbc565b60405180910390a361343b600083836135e2565b5050565b6134c2846323b872dd60e01b8585856040516024016134609392919061580d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506135e7565b50505050565b6134d0612b19565b600160fb60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613514612576565b60405161352191906143bb565b60405180910390a1565b6135378383600061398a565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061359e5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b6135dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135d490615890565b60405180910390fd5b505050565b505050565b6000613649826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661398f9092919063ffffffff16565b905060008151148061366b57508080602001905181019061366a9190614673565b5b6136aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136a190615922565b60405180910390fd5b505050565b6000819050919050565b6000819050919050565b6136cc81612ff5565b61370b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613702906159b4565b60405180910390fd5b806137387f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6136af565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b613785836139a7565b6000825111806137925750805b156137a3576137a183836139f6565b505b505050565b6137b06118b7565b6137ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137e690615a20565b60405180910390fd5b565b600060019054906101000a900460ff16613840576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161383790615781565b60405180910390fd5b816036908161384f9190615be2565b50806037908161385f9190615be2565b505050565b600060019054906101000a900460ff166138b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138aa90615781565b60405180910390fd5b6138c36138be612576565b613222565b565b600060019054906101000a900460ff16613914576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161390b90615781565b60405180910390fd5b600160c981905550565b600060019054906101000a900460ff1661396d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161396490615781565b60405180910390fd5b600060fb60006101000a81548160ff021916908315150217905550565b505050565b606061399e8484600085613a23565b90509392505050565b6139b0816136c3565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b6060613a1b8383604051806060016040528060278152602001615e1160279139613af0565b905092915050565b606082471015613a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a5f90615d26565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613a919190615d8d565b60006040518083038185875af1925050503d8060008114613ace576040519150601f19603f3d011682016040523d82523d6000602084013e613ad3565b606091505b5091509150613ae487838387613b76565b92505050949350505050565b60606000808573ffffffffffffffffffffffffffffffffffffffff1685604051613b1a9190615d8d565b600060405180830381855af49150503d8060008114613b55576040519150601f19603f3d011682016040523d82523d6000602084013e613b5a565b606091505b5091509150613b6b86838387613b76565b925050509392505050565b60608315613bd8576000835103613bd057613b9085612ff5565b613bcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bc690615df0565b60405180910390fd5b5b829050613be3565b613be28383613beb565b5b949350505050565b600082511115613bfe5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c329190613e67565b60405180910390fd5b60405180608001604052806000815260200160008152602001600081526020016000151581525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ca482613c79565b9050919050565b613cb481613c99565b8114613cbf57600080fd5b50565b600081359050613cd181613cab565b92915050565b6000819050919050565b613cea81613cd7565b8114613cf557600080fd5b50565b600081359050613d0781613ce1565b92915050565b60008060408385031215613d2457613d23613c6f565b5b6000613d3285828601613cc2565b9250506020613d4385828601613cf8565b9150509250929050565b613d5681613cd7565b82525050565b60008115159050919050565b613d7181613d5c565b82525050565b6000608082019050613d8c6000830187613d4d565b613d996020830186613d4d565b613da66040830185613d4d565b613db36060830184613d68565b95945050505050565b6000602082019050613dd16000830184613d4d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613e11578082015181840152602081019050613df6565b60008484015250505050565b6000601f19601f8301169050919050565b6000613e3982613dd7565b613e438185613de2565b9350613e53818560208601613df3565b613e5c81613e1d565b840191505092915050565b60006020820190508181036000830152613e818184613e2e565b905092915050565b6000602082019050613e9e6000830184613d68565b92915050565b600060208284031215613eba57613eb9613c6f565b5b6000613ec884828501613cc2565b91505092915050565b600080600060608486031215613eea57613ee9613c6f565b5b6000613ef886828701613cc2565b9350506020613f0986828701613cf8565b9250506040613f1a86828701613cf8565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613f5981613cd7565b82525050565b613f6881613d5c565b82525050565b608082016000820151613f846000850182613f50565b506020820151613f976020850182613f50565b506040820151613faa6040850182613f50565b506060820151613fbd6060850182613f5f565b50505050565b6000613fcf8383613f6e565b60808301905092915050565b6000602082019050919050565b6000613ff382613f24565b613ffd8185613f2f565b935061400883613f40565b8060005b838110156140395781516140208882613fc3565b975061402b83613fdb565b92505060018101905061400c565b5085935050505092915050565b600060408201905081810360008301526140608185613fe8565b905061406f6020830184613d4d565b9392505050565b60008060006060848603121561408f5761408e613c6f565b5b600061409d86828701613cc2565b93505060206140ae86828701613cc2565b92505060406140bf86828701613cf8565b9150509250925092565b6000602082840312156140df576140de613c6f565b5b60006140ed84828501613cf8565b91505092915050565b600060ff82169050919050565b61410c816140f6565b82525050565b60006020820190506141276000830184614103565b92915050565b6000819050919050565b600061415261414d61414884613c79565b61412d565b613c79565b9050919050565b600061416482614137565b9050919050565b600061417682614159565b9050919050565b6141868161416b565b82525050565b60006020820190506141a1600083018461417d565b92915050565b600080604083850312156141be576141bd613c6f565b5b60006141cc85828601613cc2565b92505060206141dd85828601613cc2565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61422982613e1d565b810181811067ffffffffffffffff82111715614248576142476141f1565b5b80604052505050565b600061425b613c65565b90506142678282614220565b919050565b600067ffffffffffffffff821115614287576142866141f1565b5b61429082613e1d565b9050602081019050919050565b82818337600083830152505050565b60006142bf6142ba8461426c565b614251565b9050828152602081018484840111156142db576142da6141ec565b5b6142e684828561429d565b509392505050565b600082601f830112614303576143026141e7565b5b81356143138482602086016142ac565b91505092915050565b6000806040838503121561433357614332613c6f565b5b600061434185828601613cc2565b925050602083013567ffffffffffffffff81111561436257614361613c74565b5b61436e858286016142ee565b9150509250929050565b6000819050919050565b61438b81614378565b82525050565b60006020820190506143a66000830184614382565b92915050565b6143b581613c99565b82525050565b60006020820190506143d060008301846143ac565b92915050565b600080604083850312156143ed576143ec613c6f565b5b60006143fb85828601613cf8565b925050602061440c85828601613cf8565b9150509250929050565b60808201600082015161442c6000850182613f50565b50602082015161443f6020850182613f50565b5060408201516144526040850182613f50565b5060608201516144656060850182613f5f565b50505050565b60006080820190506144806000830184614416565b92915050565b60008060006060848603121561449f5761449e613c6f565b5b60006144ad86828701613cc2565b93505060206144be86828701613cf8565b92505060406144cf86828701613cc2565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061452057607f821691505b602082108103614533576145326144d9565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061457382613cd7565b915061457e83613cd7565b925082820190508082111561459657614595614539565b5b92915050565b60006145a782613cd7565b91506145b283613cd7565b92508282039050818111156145ca576145c9614539565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061460a82613cd7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361463c5761463b614539565b5b600182019050919050565b61465081613d5c565b811461465b57600080fd5b50565b60008151905061466d81614647565b92915050565b60006020828403121561468957614688613c6f565b5b60006146978482850161465e565b91505092915050565b7f53616e6374696f6e656400000000000000000000000000000000000000000000600082015250565b60006146d6600a83613de2565b91506146e1826146a0565b602082019050919050565b60006020820190508181036000830152614705816146c9565b9050919050565b7f4c6f636b6564206f7220696e6163746976650000000000000000000000000000600082015250565b6000614742601283613de2565b915061474d8261470c565b602082019050919050565b6000602082019050818103600083015261477181614735565b9050919050565b7f4e6f207368617265730000000000000000000000000000000000000000000000600082015250565b60006147ae600983613de2565b91506147b982614778565b602082019050919050565b600060208201905081810360008301526147dd816147a1565b9050919050565b7f4e6f20737570706c790000000000000000000000000000000000000000000000600082015250565b600061481a600983613de2565b9150614825826147e4565b602082019050919050565b600060208201905081810360008301526148498161480d565b9050919050565b600061485b82613cd7565b915061486683613cd7565b925082820261487481613cd7565b9150828204841483151761488b5761488a614539565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006148cc82613cd7565b91506148d783613cd7565b9250826148e7576148e6614892565b5b828204905092915050565b60006060820190506149076000830186613d4d565b6149146020830185613d4d565b6149216040830184613d4d565b949350505050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b6000614985602c83613de2565b915061499082614929565b604082019050919050565b600060208201905081810360008301526149b481614978565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b6000614a17602c83613de2565b9150614a22826149bb565b604082019050919050565b60006020820190508181036000830152614a4681614a0a565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000614aa9602e83613de2565b9150614ab482614a4d565b604082019050919050565b60006020820190508181036000830152614ad881614a9c565b9050919050565b6000819050919050565b6000614b04614aff614afa84614adf565b61412d565b6140f6565b9050919050565b614b1481614ae9565b82525050565b6000602082019050614b2f6000830184614b0b565b92915050565b7f555550535570677261646561626c653a206d757374206e6f742062652063616c60008201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000602082015250565b6000614b91603883613de2565b9150614b9c82614b35565b604082019050919050565b60006020820190508181036000830152614bc081614b84565b9050919050565b7f496e76616c696400000000000000000000000000000000000000000000000000600082015250565b6000614bfd600783613de2565b9150614c0882614bc7565b602082019050919050565b60006020820190508181036000830152614c2c81614bf0565b9050919050565b6000614c3e826140f6565b9150614c49836140f6565b9250828203905060ff811115614c6257614c61614539565b5b92915050565b60008160011c9050919050565b6000808291508390505b6001851115614cbf57808604811115614c9b57614c9a614539565b5b6001851615614caa5780820291505b8081029050614cb885614c68565b9450614c7f565b94509492505050565b600082614cd85760019050614d94565b81614ce65760009050614d94565b8160018114614cfc5760028114614d0657614d35565b6001915050614d94565b60ff841115614d1857614d17614539565b5b8360020a915084821115614d2f57614d2e614539565b5b50614d94565b5060208310610133831016604e8410600b8410161715614d6a5782820a905083811115614d6557614d64614539565b5b614d94565b614d778484846001614c75565b92509050818404811115614d8e57614d8d614539565b5b81810290505b9392505050565b6000614da682613cd7565b9150614db1836140f6565b9250614dde7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484614cc8565b905092915050565b7f5374616b6520746f6f20736d616c6c0000000000000000000000000000000000600082015250565b6000614e1c600f83613de2565b9150614e2782614de6565b602082019050919050565b60006020820190508181036000830152614e4b81614e0f565b9050919050565b6000608082019050614e676000830187613d4d565b614e746020830186613d4d565b614e816040830185613d4d565b614e8e6060830184613d4d565b95945050505050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000614ef3602583613de2565b9150614efe82614e97565b604082019050919050565b60006020820190508181036000830152614f2281614ee6565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614f85602683613de2565b9150614f9082614f29565b604082019050919050565b60006020820190508181036000830152614fb481614f78565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615017602483613de2565b915061502282614fbb565b604082019050919050565b600060208201905081810360008301526150468161500a565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006150a9602283613de2565b91506150b48261504d565b604082019050919050565b600060208201905081810360008301526150d88161509c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615115602083613de2565b9150615120826150df565b602082019050919050565b6000602082019050818103600083015261514481615108565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000615181601d83613de2565b915061518c8261514b565b602082019050919050565b600060208201905081810360008301526151b081615174565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000615213602583613de2565b915061521e826151b7565b604082019050919050565b6000602082019050818103600083015261524281615206565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006152a5602383613de2565b91506152b082615249565b604082019050919050565b600060208201905081810360008301526152d481615298565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000615337602683613de2565b9150615342826152db565b604082019050919050565b600060208201905081810360008301526153668161532a565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006153a3601f83613de2565b91506153ae8261536d565b602082019050919050565b600060208201905081810360008301526153d281615396565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061540f601083613de2565b915061541a826153d9565b602082019050919050565b6000602082019050818103600083015261543e81615402565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006154a1602183613de2565b91506154ac82615445565b604082019050919050565b600060208201905081810360008301526154d081615494565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000615533602283613de2565b915061553e826154d7565b604082019050919050565b6000602082019050818103600083015261556281615526565b9050919050565b600060408201905061557e60008301856143ac565b61558b6020830184613d4d565b9392505050565b61559b81614378565b81146155a657600080fd5b50565b6000815190506155b881615592565b92915050565b6000602082840312156155d4576155d3613c6f565b5b60006155e2848285016155a9565b91505092915050565b7f45524331393637557067726164653a206e657720696d706c656d656e7461746960008201527f6f6e206973206e6f742055555053000000000000000000000000000000000000602082015250565b6000615647602e83613de2565b9150615652826155eb565b604082019050919050565b600060208201905081810360008301526156768161563a565b9050919050565b7f45524331393637557067726164653a20756e737570706f727465642070726f7860008201527f6961626c65555549440000000000000000000000000000000000000000000000602082015250565b60006156d9602983613de2565b91506156e48261567d565b604082019050919050565b60006020820190508181036000830152615708816156cc565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b600061576b602b83613de2565b91506157768261570f565b604082019050919050565b6000602082019050818103600083015261579a8161575e565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b60006157d7601f83613de2565b91506157e2826157a1565b602082019050919050565b60006020820190508181036000830152615806816157ca565b9050919050565b600060608201905061582260008301866143ac565b61582f60208301856143ac565b61583c6040830184613d4d565b949350505050565b7f4e6f6e2d7472616e7366657261626c6500000000000000000000000000000000600082015250565b600061587a601083613de2565b915061588582615844565b602082019050919050565b600060208201905081810360008301526158a98161586d565b9050919050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061590c602a83613de2565b9150615917826158b0565b604082019050919050565b6000602082019050818103600083015261593b816158ff565b9050919050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b600061599e602d83613de2565b91506159a982615942565b604082019050919050565b600060208201905081810360008301526159cd81615991565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615a0a601483613de2565b9150615a15826159d4565b602082019050919050565b60006020820190508181036000830152615a39816159fd565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302615aa27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615a65565b615aac8683615a65565b95508019841693508086168417925050509392505050565b6000615adf615ada615ad584613cd7565b61412d565b613cd7565b9050919050565b6000819050919050565b615af983615ac4565b615b0d615b0582615ae6565b848454615a72565b825550505050565b600090565b615b22615b15565b615b2d818484615af0565b505050565b5b81811015615b5157615b46600082615b1a565b600181019050615b33565b5050565b601f821115615b9657615b6781615a40565b615b7084615a55565b81016020851015615b7f578190505b615b93615b8b85615a55565b830182615b32565b50505b505050565b600082821c905092915050565b6000615bb960001984600802615b9b565b1980831691505092915050565b6000615bd28383615ba8565b9150826002028217905092915050565b615beb82613dd7565b67ffffffffffffffff811115615c0457615c036141f1565b5b615c0e8254614508565b615c19828285615b55565b600060209050601f831160018114615c4c5760008415615c3a578287015190505b615c448582615bc6565b865550615cac565b601f198416615c5a86615a40565b60005b82811015615c8257848901518255600182019150602085019450602081019050615c5d565b86831015615c9f5784890151615c9b601f891682615ba8565b8355505b6001600288020188555050505b505050505050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000615d10602683613de2565b9150615d1b82615cb4565b604082019050919050565b60006020820190508181036000830152615d3f81615d03565b9050919050565b600081519050919050565b600081905092915050565b6000615d6782615d46565b615d718185615d51565b9350615d81818560208601613df3565b80840191505092915050565b6000615d998284615d5c565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615dda601d83613de2565b9150615de582615da4565b602082019050919050565b60006020820190508181036000830152615e0981615dcd565b905091905056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212200c201d43f9311c6c492748dfc83660781a1acf8ab70ebf684511009f7c9ad1ad64736f6c63430008110033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.