Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
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:
PowerToken
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-10-09 */ // SPDX-License-Identifier: BSD-3-Clause // File: lib/ipor-power-tokens/contracts/security/StorageLib.sol pragma solidity 0.8.20; /// @title Storage IDs associated with the IPOR Protocol Router. library StorageLib { uint256 constant STORAGE_SLOT_BASE = 1_000_000; // append only enum StorageId { /// @dev The address of the contract owner. Owner, AppointedOwner, Paused, PauseGuardians, ReentrancyStatus } struct OwnerStorage { address value; } struct AppointedOwnerStorage { address appointedOwner; } struct PausedStorage { uint256 value; } struct ReentrancyStatusStorage { uint256 value; } function getOwner() internal pure returns (OwnerStorage storage owner) { uint256 slot = _getStorageSlot(StorageId.Owner); assembly { owner.slot := slot } } function getAppointedOwner() internal pure returns (AppointedOwnerStorage storage appointedOwner) { uint256 slot = _getStorageSlot(StorageId.AppointedOwner); assembly { appointedOwner.slot := slot } } function getPaused() internal pure returns (PausedStorage storage paused) { uint256 slot = _getStorageSlot(StorageId.Paused); assembly { paused.slot := slot } } function getPauseGuardianStorage() internal pure returns (mapping(address => uint256) storage store) { uint256 slot = _getStorageSlot(StorageId.PauseGuardians); assembly { store.slot := slot } } function getReentrancyStatus() internal pure returns (ReentrancyStatusStorage storage status) { uint256 slot = _getStorageSlot(StorageId.ReentrancyStatus); assembly { status.slot := slot } } function _getStorageSlot(StorageId storageId) private pure returns (uint256 slot) { return uint256(storageId) + STORAGE_SLOT_BASE; } } // File: lib/ipor-power-tokens/contracts/security/PauseManager.sol pragma solidity 0.8.20; library PauseManager { function addPauseGuardians(address[] calldata guardians) internal { uint256 length = guardians.length; if (length == 0) { return; } mapping(address => uint256) storage pauseGuardians = StorageLib.getPauseGuardianStorage(); for (uint256 i; i < length; ) { pauseGuardians[guardians[i]] = 1; unchecked { ++i; } } emit PauseGuardiansAdded(guardians); } function removePauseGuardians(address[] calldata guardians) internal { uint256 length = guardians.length; if (length == 0) { return; } mapping(address => uint256) storage pauseGuardians = StorageLib.getPauseGuardianStorage(); for (uint256 i; i < length; ) { pauseGuardians[guardians[i]] = 0; unchecked { ++i; } } emit PauseGuardiansRemoved(guardians); } function isPauseGuardian(address _guardian) internal view returns (bool) { mapping(address => uint256) storage pauseGuardians = StorageLib.getPauseGuardianStorage(); return pauseGuardians[_guardian] == 1; } event PauseGuardiansAdded(address[] indexed guardians); event PauseGuardiansRemoved(address[] indexed guardians); } // File: lib/ipor-power-tokens/contracts/libraries/math/MathOperation.sol pragma solidity 0.8.20; library MathOperation { //@notice Division with the rounding up on last position, x, and y is with MD function division(uint256 x, uint256 y) internal pure returns (uint256 z) { z = (x + (y / 2)) / y; } } // File: lib/ipor-power-tokens/contracts/libraries/errors/Errors.sol pragma solidity 0.8.20; library Errors { /// @notice Error thrown when the lpToken address is not supported /// @dev List of supported LpTokens is defined in {LiquidityMining._lpTokens} string public constant LP_TOKEN_NOT_SUPPORTED = "PT_701"; /// @notice Error thrown when the caller / msgSender is not a Pause Manager address. /// @dev Pause Manager can be defined by the smart contract's Onwer string public constant CALLER_NOT_PAUSE_MANAGER = "PT_704"; /// @notice Error thrown when the account's base balance is too low string public constant ACCOUNT_BASE_BALANCE_IS_TOO_LOW = "PT_705"; /// @notice Error thrown when the account's Lp Token balance is too low string public constant ACCOUNT_LP_TOKEN_BALANCE_IS_TOO_LOW = "PT_706"; /// @notice Error thrown when the account's delegated balance is too low string public constant ACC_DELEGATED_TO_LIQUIDITY_MINING_BALANCE_IS_TOO_LOW = "PT_707"; /// @notice Error thrown when the account's available Power Token balance is too low string public constant ACC_AVAILABLE_POWER_TOKEN_BALANCE_IS_TOO_LOW = "PT_708"; /// @notice Error thrown when the account doesn't have the rewards (Staked Tokens / Power Tokens) to claim string public constant NO_REWARDS_TO_CLAIM = "PT_709"; /// @notice Error thrown when the cooldown is not finished. string public constant COOL_DOWN_NOT_FINISH = "PT_710"; /// @notice Error thrown when the aggregate power up indicator is going to be negative during the calculation. string public constant AGGREGATE_POWER_UP_COULD_NOT_BE_NEGATIVE = "PT_711"; /// @notice Error thrown when the block number used in the function is lower than previous block number stored in the liquidity mining indicators. string public constant BLOCK_NUMBER_LOWER_THAN_PREVIOUS_BLOCK_NUMBER = "PT_712"; /// @notice Account Composite Multiplier indicator is greater or equal to Composit Multiplier indicator, but it should be lower or equal string public constant ACCOUNT_COMPOSITE_MULTIPLIER_GT_COMPOSITE_MULTIPLIER = "PT_713"; /// @notice The fee for unstacking of Power Tokens should be number between (0, 1e18) string public constant UNSTAKE_WITHOUT_COOLDOWN_FEE_IS_TO_HIGH = "PT_714"; /// @notice General problem, address is wrong string public constant WRONG_ADDRESS = "PT_715"; /// @notice General problem, contract is wrong string public constant WRONG_CONTRACT_ID = "PT_716"; /// @notice Value not greater than zero string public constant VALUE_NOT_GREATER_THAN_ZERO = "PT_717"; /// @notice Appeared when input of two arrays length mismatch string public constant INPUT_ARRAYS_LENGTH_MISMATCH = "PT_718"; /// @notice msg.sender is not an appointed owner, it cannot confirm their ownership string public constant SENDER_NOT_APPOINTED_OWNER = "PT_719"; /// @notice msg.sender is not an appointed owner, it cannot confirm their ownership string public constant ROUTER_INVALID_SIGNATURE = "PT_720"; string public constant INPUT_ARRAYS_EMPTY = "PT_721"; string public constant CALLER_NOT_ROUTER = "PT_722"; string public constant CALLER_NOT_GUARDIAN = "PT_723"; string public constant CONTRACT_PAUSED = "PT_724"; string public constant REENTRANCY = "PT_725"; string public constant CALLER_NOT_OWNER = "PT_726"; } // File: lib/ipor-power-tokens/contracts/libraries/ContractValidator.sol pragma solidity 0.8.20; library ContractValidator { function checkAddress(address addr) internal pure returns (address) { require(addr != address(0), Errors.WRONG_ADDRESS); return addr; } } // File: lib/ipor-power-tokens/contracts/interfaces/IProxyImplementation.sol pragma solidity 0.8.20; interface IProxyImplementation { /// @notice Retrieves the address of the implementation contract for UUPS proxy. /// @return The address of the implementation contract. /// @dev The function returns the value stored in the implementation storage slot. function getImplementation() external view returns (address); } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // 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); } // File: lib/ipor-power-tokens/contracts/interfaces/IGovernanceToken.sol pragma solidity 0.8.20; /// @title Interface of the Staked Token. interface IGovernanceToken is IERC20 { /** * @dev Contract id. * The keccak-256 hash of "io.ipor.IporToken" decreased by 1 */ function getContractId() external pure returns (bytes32); } // File: @openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol // 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 } } } // File: @openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol // 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); } // File: @openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol // 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); } // File: @openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol // 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); } // File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol // 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); } } } // File: @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol // OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; /** * @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; } } // File: @openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; /** * @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; } // File: @openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.0; /** * @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; } // File: @openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract 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; } // File: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @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; } // File: @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @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; } // File: lib/ipor-power-tokens/contracts/security/MiningOwnableUpgradeable.sol pragma solidity 0.8.20; contract MiningOwnableUpgradeable is OwnableUpgradeable { address private _appointedOwner; event AppointedToTransferOwnership(address indexed appointedOwner); modifier onlyAppointedOwner() { require(_appointedOwner == msg.sender, Errors.SENDER_NOT_APPOINTED_OWNER); _; } function transferOwnership(address appointedOwner) public override onlyOwner { require(appointedOwner != address(0), Errors.WRONG_ADDRESS); _appointedOwner = appointedOwner; emit AppointedToTransferOwnership(appointedOwner); } function confirmTransferOwnership() public onlyAppointedOwner { _appointedOwner = address(0); _transferOwnership(msg.sender); } function renounceOwnership() public virtual override onlyOwner { _transferOwnership(address(0)); _appointedOwner = address(0); } } // File: @openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; /** * @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; } // File: @openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol // 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); } // File: @openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @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); } // File: @openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @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; } // File: lib/ipor-power-tokens/contracts/interfaces/types/PowerTokenTypes.sol pragma solidity 0.8.20; /// @title Struct used across Liquidity Mining. library PowerTokenTypes { struct PwTokenCooldown { // @dev The timestamp when the account can redeem Power Tokens uint256 endTimestamp; // @dev The amount of Power Tokens which can be redeemed without fee when the cooldown reaches `endTimestamp` uint256 pwTokenAmount; } struct UpdateGovernanceToken { address beneficiary; uint256 governanceTokenAmount; } } // File: lib/ipor-power-tokens/contracts/interfaces/IPowerTokenInternal.sol pragma solidity 0.8.20; /// @title PowerToken smart contract interface interface IPowerTokenInternal { /// @notice Returns the current version of the PowerToken smart contract /// @return Current PowerToken smart contract version function getVersion() external pure returns (uint256); /// @notice Gets the total supply base amount /// @return total supply base amount, represented with 18 decimals function totalSupplyBase() external view returns (uint256); /// @notice Calculates the internal exchange rate between the Staked Token and total supply of a base amount /// @return Current exchange rate between the Staked Token and the total supply of a base amount, represented with 18 decimals. function calculateExchangeRate() external view returns (uint256); /// @notice Method for seting up the unstaking fee /// @param unstakeWithoutCooldownFee fee percentage, represented with 18 decimals. function setUnstakeWithoutCooldownFee(uint256 unstakeWithoutCooldownFee) external; /// @notice method returning address of the Staked Token function getGovernanceToken() external view returns (address); /// @notice Pauses the smart contract, it can only be executed by the Owner /// @dev Emits {Paused} event. function pause() external; /// @notice Unpauses the smart contract, it can only be executed by the Owner /// @dev Emits {Unpaused}. function unpause() external; /// @notice Method for granting allowance to the Router /// @param erc20Token address of the ERC20 token function grantAllowanceForRouter(address erc20Token) external; /// @notice Method for revoking allowance to the Router /// @param erc20Token address of the ERC20 token function revokeAllowanceForRouter(address erc20Token) external; /// @notice Gets the power token cool down time in seconds. /// @return uint256 cool down time in seconds function COOL_DOWN_IN_SECONDS() external view returns (uint256); /// @notice Adds a new pause guardian to the contract. /// @param guardians The addresses of the new pause guardians. /// @dev Only the contract owner can call this function. function addPauseGuardians(address[] calldata guardians) external; /// @notice Removes a pause guardian from the contract. /// @param guardians The addresses of the pause guardians to be removed. /// @dev Only the contract owner can call this function. function removePauseGuardians(address[] calldata guardians) external; /// @notice Checks if an address is a pause guardian. /// @param guardian The address to be checked. /// @return A boolean indicating whether the address is a pause guardian (true) or not (false). function isPauseGuardian(address guardian) external view returns (bool); /// @notice Emitted when the user receives rewards from the LiquidityMining /// @dev Receiving rewards does not change Internal Exchange Rate of Power Tokens in PowerToken smart contract. /// @param account address /// @param rewardsAmount amount of Power Tokens received from LiquidityMining event RewardsReceived(address account, uint256 rewardsAmount); /// @notice Emitted when the fee for immediate unstaking is modified. /// @param newFee new value of the fee, represented with 18 decimals event UnstakeWithoutCooldownFeeChanged(uint256 newFee); /// @notice Emmited when PauseManager's address had been changed by its owner. /// @param newLiquidityMining PauseManager's new address event LiquidityMiningChanged(address indexed newLiquidityMining); /// @notice Emmited when the PauseManager's address is changed by its owner. /// @param newPauseManager PauseManager's new address event PauseManagerChanged(address indexed newPauseManager); /// @notice Emitted when owner grants allowance for router /// @param erc20Token address of ERC20 token /// @param router address of router event AllowanceGranted(address indexed erc20Token, address indexed router); /// @notice Emitted when owner revokes allowance for router /// @param erc20Token address of ERC20 token /// @param router address of router event AllowanceRevoked(address indexed erc20Token, address indexed router); } // File: lib/ipor-power-tokens/contracts/interfaces/IPowerToken.sol pragma solidity 0.8.20; /// @title The Interface for the interaction with the PowerToken - smart contract responsible /// for managing Power Token (pwToken), Swapping Staked Token for Power Tokens, and /// delegating Power Tokens to other components. interface IPowerToken { /// @notice Gets the name of the Power Token /// @return Returns the name of the Power Token. function name() external pure returns (string memory); /// @notice Contract ID. The keccak-256 hash of "io.ipor.PowerToken" decreased by 1 /// @return Returns the ID of the contract function getContractId() external pure returns (bytes32); /// @notice Gets the symbol of the Power Token. /// @return Returns the symbol of the Power Token. function symbol() external pure returns (string memory); /// @notice Returns the number of the decimals used by Power Token. By default it's 18 decimals. /// @return Returns the number of decimals: 18. function decimals() external pure returns (uint8); /// @notice Gets the total supply of the Power Token. /// @dev Value is calculated in runtime using baseTotalSupply and internal exchange rate. /// @return Total supply of Power tokens, represented with 18 decimals function totalSupply() external view returns (uint256); /// @notice Gets the balance of Power Tokens for a given account /// @param account account address for which the balance of Power Tokens is fetched /// @return Returns the amount of the Power Tokens owned by the `account`. function balanceOf(address account) external view returns (uint256); /// @notice Gets the delegated balance of the Power Tokens for a given account. /// Tokens are delegated from PowerToken to LiquidityMining smart contract (reponsible for rewards distribution). /// @param account account address for which the balance of delegated Power Tokens is checked /// @return Returns the amount of the Power Tokens owned by the `account` and delegated to the LiquidityMining contracts. function delegatedToLiquidityMiningBalanceOf(address account) external view returns (uint256); /// @notice Gets the rate of the fee from the configuration. This fee is applied when the owner of Power Tokens wants to unstake them immediately. /// @dev Fee value represented in as a percentage with 18 decimals /// @return value, a percentage represented with 18 decimal function getUnstakeWithoutCooldownFee() external view returns (uint256); /// @notice Gets the state of the active cooldown for the sender. /// @dev If PowerTokenTypes.PowerTokenCoolDown contains only zeros it represents no active cool down. /// Struct containing information on when the cooldown end and what is the quantity of the Power Tokens locked. /// @param account account address that owns Power Tokens in the cooldown /// @return Object PowerTokenTypes.PowerTokenCoolDown represents active cool down function getActiveCooldown( address account ) external view returns (PowerTokenTypes.PwTokenCooldown memory); /// @notice Initiates a cooldown for the specified account. /// @dev This function allows an account to initiate a cooldown period for a specified amount of Power Tokens. /// During the cooldown period, the specified amount of Power Tokens cannot be redeemed or transferred. /// @param account The account address for which the cooldown is initiated. /// @param pwTokenAmount The amount of Power Tokens to be put on cooldown. function cooldownInternal(address account, uint256 pwTokenAmount) external; /// @notice Cancels the cooldown for the specified account. /// @dev This function allows an account to cancel the active cooldown period for their Power Tokens, /// enabling them to freely redeem or transfer their Power Tokens. /// @param account The account address for which the cooldown is to be canceled. function cancelCooldownInternal(address account) external; /// @notice Redeems Power Tokens for the specified account. /// @dev This function allows an account to redeem their Power Tokens, transferring the specified /// amount of Power Tokens back to the account's staked token balance. /// The redemption is subject to the cooldown period, and the account must wait for the cooldown /// period to finish before being able to redeem the Power Tokens. /// @param account The account address for which Power Tokens are to be redeemed. /// @return transferAmount The amount of Power Tokens that have been redeemed and transferred back to the staked token balance. function redeemInternal(address account) external returns (uint256 transferAmount); /// @notice Adds staked tokens to the specified account. /// @dev This function allows the specified account to add staked tokens to their Power Token balance. /// The staked tokens are converted to Power Tokens based on the internal exchange rate. /// @param updateGovernanceToken An object of type PowerTokenTypes.UpdateGovernanceToken containing the details of the staked token update. function addGovernanceTokenInternal( PowerTokenTypes.UpdateGovernanceToken memory updateGovernanceToken ) external; /// @notice Removes staked tokens from the specified account, applying a fee. /// @dev This function allows the specified account to remove staked tokens from their Power Token balance, /// while deducting a fee from the staked token amount. The fee is determined based on the cooldown period. /// @param updateGovernanceToken An object of type PowerTokenTypes.UpdateGovernanceToken containing the details of the staked token update. /// @return governanceTokenAmountToTransfer The amount of staked tokens to be transferred after applying the fee. function removeGovernanceTokenWithFeeInternal( PowerTokenTypes.UpdateGovernanceToken memory updateGovernanceToken ) external returns (uint256 governanceTokenAmountToTransfer); /// @notice Delegates a specified amount of Power Tokens from the caller's balance to the Liquidity Mining contract. /// @dev This function allows the caller to delegate a specified amount of Power Tokens to the Liquidity Mining contract, /// enabling them to participate in liquidity mining and earn rewards. /// @param account The address of the account delegating the Power Tokens. /// @param pwTokenAmount The amount of Power Tokens to delegate. function delegateInternal(address account, uint256 pwTokenAmount) external; /// @notice Undelegated a specified amount of Power Tokens from the Liquidity Mining contract back to the caller's balance. /// @dev This function allows the caller to undelegate a specified amount of Power Tokens from the Liquidity Mining contract, /// effectively removing them from participation in liquidity mining and stopping the earning of rewards. /// @param account The address of the account to undelegate the Power Tokens from. /// @param pwTokenAmount The amount of Power Tokens to undelegate. function undelegateInternal(address account, uint256 pwTokenAmount) external; /// @notice Emitted when the account stake/add [Staked] Tokens /// @param account account address that executed the staking /// @param governanceTokenAmount of Staked Token amount being staked into PowerToken contract /// @param internalExchangeRate internal exchange rate used to calculate the base amount /// @param baseAmount value calculated based on the governanceTokenAmount and the internalExchangeRate event GovernanceTokenAdded( address indexed account, uint256 governanceTokenAmount, uint256 internalExchangeRate, uint256 baseAmount ); /// @notice Emitted when the account unstakes the Power Tokens /// @param account address that executed the unstaking /// @param pwTokenAmount amount of Power Tokens that were unstaked /// @param internalExchangeRate which was used to calculate the base amount /// @param fee amount subtracted from the pwTokenAmount event GovernanceTokenRemovedWithFee( address indexed account, uint256 pwTokenAmount, uint256 internalExchangeRate, uint256 fee ); /// @notice Emitted when the sender delegates the Power Tokens to the LiquidityMining contract /// @param account address delegating the Power Tokens /// @param pwTokenAmounts amounts of Power Tokens delegated to respective lpTokens event Delegated(address indexed account, uint256 pwTokenAmounts); /// @notice Emitted when the sender undelegates Power Tokens from the LiquidityMining /// @param account address undelegating Power Tokens /// @param pwTokenAmounts amounts of Power Tokens undelegated form respective lpTokens event Undelegated(address indexed account, uint256 pwTokenAmounts); /// @notice Emitted when the sender sets the cooldown on Power Tokens /// @param pwTokenAmount amount of pwToken in cooldown /// @param endTimestamp end time of the cooldown event CooldownChanged(uint256 pwTokenAmount, uint256 endTimestamp); /// @notice Emitted when the sender redeems the pwTokens after the cooldown /// @param account address that executed the redeem function /// @param pwTokenAmount amount of the pwTokens that was transferred to the Power Token owner's address event Redeem(address indexed account, uint256 pwTokenAmount); } // File: lib/ipor-power-tokens/contracts/interfaces/types/LiquidityMiningTypes.sol pragma solidity 0.8.20; /// @title Structures used in the LiquidityMining. library LiquidityMiningTypes { /// @title Struct pair representing delegated pwToken balance struct DelegatedPwTokenBalance { /// @notice lpToken address address lpToken; /// @notice The amount of Power Token delegated to lpToken staking pool /// @dev value represented in 18 decimals uint256 pwTokenAmount; } /// @title Global indicators used in rewards calculation. struct GlobalRewardsIndicators { /// @notice powerUp indicator aggregated /// @dev It can be changed many times during transaction, represented with 18 decimals uint256 aggregatedPowerUp; /// @notice composite multiplier in a block described in field blockNumber /// @dev It can be changed many times during transaction, represented with 27 decimals uint128 compositeMultiplierInTheBlock; /// @notice Composite multiplier updated in block {blockNumber} but calculated for PREVIOUS (!) block. /// @dev It can be changed once per block, represented with 27 decimals uint128 compositeMultiplierCumulativePrevBlock; /// @dev It can be changed once per block. Block number in which all other params of this structure are updated uint32 blockNumber; /// @notice value describing amount of rewards issued per block, /// @dev It can be changed at most once per block, represented with 8 decimals uint32 rewardsPerBlock; /// @notice amount of accrued rewards since inception /// @dev It can be changed at most once per block, represented with 18 decimals uint88 accruedRewards; } /// @title Params recorded for a given account. These params are used by the algorithm responsible for rewards distribution. /// @dev The structure in storage is updated when account interacts with the LiquidityMining smart contract (stake, unstake, delegate, undelegate, claim) struct AccountRewardsIndicators { /// @notice `composite multiplier cumulative` is calculated for previous block /// @dev represented in 27 decimals uint128 compositeMultiplierCumulativePrevBlock; /// @notice lpToken account's balance uint128 lpTokenBalance; /// @notive PowerUp is a result of logarithmic equastion, /// @dev powerUp < 100 *10^18 uint72 powerUp; /// @notice balance of Power Tokens delegated to LiquidityMining /// @dev delegatedPwTokenBalance < 10^26 < 2^87 uint96 delegatedPwTokenBalance; } struct UpdateLpToken { address beneficiary; address lpToken; uint256 lpTokenAmount; } struct UpdatePwToken { address beneficiary; address lpToken; uint256 pwTokenAmount; } struct AccruedRewardsResult { address lpToken; uint256 rewardsAmount; } struct AccountRewardResult { address lpToken; uint256 rewardsAmount; uint256 allocatedPwTokens; } struct AccountIndicatorsResult { address lpToken; LiquidityMiningTypes.AccountRewardsIndicators indicators; } struct GlobalIndicatorsResult { address lpToken; LiquidityMiningTypes.GlobalRewardsIndicators indicators; } } // File: lib/ipor-power-tokens/contracts/interfaces/ILiquidityMining.sol pragma solidity 0.8.20; /// @title The interface for interaction with the LiquidityMining. /// LiquidityMining is responsible for the distribution of the Power Token rewards to accounts /// staking lpTokens and / or delegating Power Tokens to LiquidityMining. LpTokens can be staked directly to the LiquidityMining, /// Power Tokens are a staked version of the [Staked] Tokens minted by the PowerToken smart contract. interface ILiquidityMining { /// @notice Contract ID. The keccak-256 hash of "io.ipor.LiquidityMining" decreased by 1 /// @return Returns an ID of the contract function getContractId() external pure returns (bytes32); /// @notice Returns the balance of staked lpTokens /// @param account the account's address /// @param lpToken the address of lpToken /// @return balance of the lpTokens staked by the sender function balanceOf(address account, address lpToken) external view returns (uint256); /// @notice It returns the balance of delegated Power Tokens for a given `account` and the list of lpToken addresses. /// @param account address for which to fetch the information about balance of delegated Power Tokens /// @param lpTokens list of lpTokens addresses(lpTokens) /// @return balances list of {LiquidityMiningTypes.DelegatedPwTokenBalance} structure, with information how much Power Token is delegated per lpToken address. function balanceOfDelegatedPwToken( address account, address[] memory lpTokens ) external view returns (LiquidityMiningTypes.DelegatedPwTokenBalance[] memory balances); /// @notice Calculates the accrued rewards for multiple LP tokens. /// @param lpTokens An array of LP token addresses. /// @return An array of `AccruedRewardsResult` structures, containing the LP token address and the accrued rewards amount. function calculateAccruedRewards( address[] calldata lpTokens ) external view returns (LiquidityMiningTypes.AccruedRewardsResult[] memory); /// @notice Calculates the rewards earned by an account for multiple LP tokens. /// @param account The address of the account for which to calculate rewards. /// @param lpTokens An array of LP token addresses. /// @return An array of `AccountRewardResult` structures, containing the LP token address, rewards amount, and allocated Power Token balance for the account. function calculateAccountRewards( address account, address[] calldata lpTokens ) external view returns (LiquidityMiningTypes.AccountRewardResult[] memory); /// @notice method allowing to update the indicators per asset (lpToken). /// @param account of which we should update the indicators /// @param lpTokens of the staking pools to update the indicators function updateIndicators(address account, address[] calldata lpTokens) external; /// @notice Adds LP tokens to the liquidity mining for multiple accounts. /// @param updateLpToken An array of `UpdateLpToken` structures, each containing the account address, /// LP token address, and LP token amount to be added. function addLpTokensInternal( LiquidityMiningTypes.UpdateLpToken[] memory updateLpToken ) external; /// @notice Adds Power tokens to the liquidity mining for multiple accounts. /// @param updatePwToken An array of `UpdatePwToken` structures, each containing the account address, /// LP token address, and Power token amount to be added. function addPwTokensInternal( LiquidityMiningTypes.UpdatePwToken[] memory updatePwToken ) external; /// @notice Removes LP tokens from the liquidity mining for multiple accounts. /// @param updateLpToken An array of `UpdateLpToken` structures, each containing the account address, /// LP token address, and LP token amount to be removed. function removeLpTokensInternal( LiquidityMiningTypes.UpdateLpToken[] memory updateLpToken ) external; /// @notice Removes Power Tokens from the liquidity mining for multiple accounts. /// @param updatePwToken An array of `UpdatePwToken` structures, each containing the account address, /// LP token address, and Power Token amount to be removed. function removePwTokensInternal( LiquidityMiningTypes.UpdatePwToken[] memory updatePwToken ) external; /// @notice Claims accumulated rewards for multiple LP tokens and transfers them to the specified account. /// @param account The account address to claim rewards for. /// @param lpTokens An array of LP token addresses for which rewards will be claimed. /// @return rewardsAmountToTransfer The total amount of rewards transferred to the account. function claimInternal( address account, address[] calldata lpTokens ) external returns (uint256 rewardsAmountToTransfer); /// @notice Retrieves the global indicators for multiple LP tokens. /// @param lpTokens An array of LP token addresses for which to retrieve the global indicators. /// @return An array of LiquidityMiningTypes.GlobalIndicatorsResult containing the global indicators for each LP token. function getGlobalIndicators( address[] calldata lpTokens ) external view returns (LiquidityMiningTypes.GlobalIndicatorsResult[] memory); /// @notice Retrieves the account indicators for a specific account and multiple LP tokens. /// @param account The address of the account for which to retrieve the account indicators. /// @param lpTokens An array of LP token addresses for which to retrieve the account indicators. /// @return An array of LiquidityMiningTypes.AccountIndicatorsResult containing the account indicators for each LP token. function getAccountIndicators( address account, address[] calldata lpTokens ) external view returns (LiquidityMiningTypes.AccountIndicatorsResult[] memory); /// @notice Emitted when the account stakes the lpTokens /// @param account Account's address in the context of which the activities of staking of lpTokens are performed /// @param lpToken address of lpToken being staked /// @param lpTokenAmount of lpTokens to stake, represented with 18 decimals event LpTokensStaked(address account, address lpToken, uint256 lpTokenAmount); /// @notice Emitted when the account claims the rewards /// @param account Account's address in the context of which activities of claiming are performed /// @param lpTokens The addresses of the lpTokens for which the rewards are claimed /// @param rewardsAmount Reward amount denominated in pwToken, represented with 18 decimals event Claimed(address account, address[] lpTokens, uint256 rewardsAmount); /// @notice Emitted when the account claims the allocated rewards /// @param account Account address in the context of which activities of claiming are performed /// @param allocatedRewards Reward amount denominated in pwToken, represented in 18 decimals event AllocatedTokensClaimed(address account, uint256 allocatedRewards); /// @notice Emitted when update was triggered for the account on the lpToken /// @param account Account address to which the update was triggered /// @param lpToken lpToken address to which the update was triggered event IndicatorsUpdated(address account, address lpToken); /// @notice Emitted when the lpToken is added to the LiquidityMining /// @param beneficiary Account address on behalf of which the lpToken is added /// @param lpToken lpToken address which is added /// @param lpTokenAmount Amount of lpTokens added, represented with 18 decimals event LpTokenAdded(address beneficiary, address lpToken, uint256 lpTokenAmount); /// @notice Emitted when the lpToken is removed from the LiquidityMining /// @param account address on behalf of which the lpToken is removed /// @param lpToken lpToken address which is removed /// @param lpTokenAmount Amount of lpTokens removed, represented with 18 decimals event LpTokensRemoved(address account, address lpToken, uint256 lpTokenAmount); /// @notice Emitted when the PwTokens is added to lpToken pool /// @param beneficiary Account address on behalf of which the PwToken is added /// @param lpToken lpToken address to which the PwToken is added /// @param pwTokenAmount Amount of PwTokens added, represented with 18 decimals event PwTokensAdded(address beneficiary, address lpToken, uint256 pwTokenAmount); /// @notice Emitted when the PwTokens is removed from lpToken pool /// @param account Account address on behalf of which the PwToken is removed /// @param lpToken lpToken address from which the PwToken is removed /// @param pwTokenAmount Amount of PwTokens removed, represented with 18 decimals event PwTokensRemoved(address account, address lpToken, uint256 pwTokenAmount); } // File: lib/ipor-power-tokens/contracts/tokens/PowerTokenInternal.sol pragma solidity 0.8.20; abstract contract PowerTokenInternal is PausableUpgradeable, UUPSUpgradeable, ReentrancyGuardUpgradeable, MiningOwnableUpgradeable, IPowerTokenInternal, IProxyImplementation { using ContractValidator for address; bytes32 internal constant _GOVERNANCE_TOKEN_ID = 0xdba05ed67d0251facfcab8345f27ccd3e72b5a1da8cebfabbcccf4316e6d053c; /// @dev 14 days uint256 public constant COOL_DOWN_IN_SECONDS = 2 * 7 * 24 * 60 * 60; address public immutable routerAddress; address internal immutable _governanceToken; // @dev @deprecated address internal _liquidityMiningDeprecated; // @dev @deprecated use _STAKED_TOKEN_ADDRESS instead address internal _governanceTokenDeprecated; // @deprecated field is deprecated address internal _pauseManagerDeprecated; /// @dev account address -> base amount, represented with 18 decimals mapping(address => uint256) internal _baseBalance; /// @dev balance of Power Token delegated to LiquidityMining, information per account, balance represented with 18 decimals mapping(address => uint256) internal _delegatedToLiquidityMiningBalance; // account address -> {endTimestamp, amount} mapping(address => PowerTokenTypes.PwTokenCooldown) internal _cooldowns; uint256 internal _baseTotalSupply; /// @dev value represents percentage in 18 decimals, example 1e18 = 100%, 50% = 5 * 1e17 uint256 internal _unstakeWithoutCooldownFee; constructor(address routerAddressInput, address governanceTokenInput) { _governanceToken = governanceTokenInput.checkAddress(); routerAddress = routerAddressInput.checkAddress(); require( IGovernanceToken(governanceTokenInput).getContractId() == _GOVERNANCE_TOKEN_ID, Errors.WRONG_CONTRACT_ID ); } /// @dev Throws an error if called by any account other than the pause guardian. modifier onlyPauseGuardian() { require(PauseManager.isPauseGuardian(msg.sender), Errors.CALLER_NOT_GUARDIAN); _; } modifier onlyRouter() { require(msg.sender == routerAddress, Errors.CALLER_NOT_ROUTER); _; } function initialize() public initializer { __Pausable_init_unchained(); __Ownable_init_unchained(); __UUPSUpgradeable_init_unchained(); /// @dev 50% fee for unstake without cooldown _unstakeWithoutCooldownFee = 1e17 * 5; } function getVersion() external pure override returns (uint256) { return 2_001; } function totalSupplyBase() external view override returns (uint256) { return _baseTotalSupply; } function calculateExchangeRate() external view override returns (uint256) { return _calculateInternalExchangeRate(); } function getGovernanceToken() external view override returns (address) { return _governanceToken; } function setUnstakeWithoutCooldownFee( uint256 unstakeWithoutCooldownFee ) external override onlyOwner { require(unstakeWithoutCooldownFee <= 1e18, Errors.UNSTAKE_WITHOUT_COOLDOWN_FEE_IS_TO_HIGH); _unstakeWithoutCooldownFee = unstakeWithoutCooldownFee; emit UnstakeWithoutCooldownFeeChanged(unstakeWithoutCooldownFee); } function pause() external override onlyPauseGuardian { _pause(); } function unpause() external override onlyOwner { _unpause(); } function grantAllowanceForRouter(address erc20Token) external override onlyOwner { require(erc20Token != address(0), Errors.WRONG_ADDRESS); IERC20(erc20Token).approve(routerAddress, type(uint256).max); emit AllowanceGranted(msg.sender, erc20Token); } function revokeAllowanceForRouter(address erc20Token) external override onlyOwner { require(erc20Token != address(0), Errors.WRONG_ADDRESS); IERC20(erc20Token).approve(routerAddress, 0); emit AllowanceRevoked(erc20Token, routerAddress); } function getImplementation() external view override returns (address) { return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value; } function addPauseGuardians(address[] calldata guardians) external onlyOwner { PauseManager.addPauseGuardians(guardians); } function removePauseGuardians(address[] calldata guardians) external onlyOwner { PauseManager.removePauseGuardians(guardians); } function isPauseGuardian(address guardian) external view returns (bool) { return PauseManager.isPauseGuardian(guardian); } function _calculateInternalExchangeRate() internal view returns (uint256) { uint256 baseTotalSupply = _baseTotalSupply; if (baseTotalSupply == 0) { return 1e18; } uint256 balanceOfGovernanceToken = IERC20Upgradeable(_governanceToken).balanceOf( address(this) ); if (balanceOfGovernanceToken == 0) { return 1e18; } return MathOperation.division(balanceOfGovernanceToken * 1e18, baseTotalSupply); } function _calculateAmountWithCooldownFeeSubtracted( uint256 baseAmount ) internal view returns (uint256) { return MathOperation.division((1e18 - _unstakeWithoutCooldownFee) * baseAmount, 1e18); } function _calculateBaseAmountToPwToken( uint256 baseAmount, uint256 exchangeRate ) internal pure returns (uint256) { return MathOperation.division(baseAmount * exchangeRate, 1e18); } function _getAvailablePwTokenAmount( address account, uint256 exchangeRate ) internal view returns (uint256) { return _calculateBaseAmountToPwToken(_baseBalance[account], exchangeRate) - _delegatedToLiquidityMiningBalance[account] - _cooldowns[account].pwTokenAmount; } function _balanceOf(address account) internal view returns (uint256) { return _calculateBaseAmountToPwToken(_baseBalance[account], _calculateInternalExchangeRate()); } //solhint-disable no-empty-blocks function _authorizeUpgrade(address) internal override onlyOwner {} } // File: lib/ipor-power-tokens/contracts/interfaces/ILiquidityMiningInternal.sol pragma solidity 0.8.20; /// @title The interface for interaction with the LiquidityMining contract. Contains mainly technical methods or methods used by PowerToken smart contract. interface ILiquidityMiningInternal { /// @notice Returns the current version of the LiquidityMining contract /// @return Current LiquidityMining (Liquidity Rewards) version function getVersion() external pure returns (uint256); /// @notice Checks if lpToken is supported by the liquidity mining module. /// @param lpToken lpToken address /// @return returns true if lpToken is supported by the LiquidityMining, false otherwise function isLpTokenSupported(address lpToken) external view returns (bool); /// @notice Sets the global configuration indicator - rewardsPerBlock for a given lpToken /// @param lpToken address for which to setup `rewards per block` /// @param pwTokenAmount amount of the `rewards per block`, denominated in Power Token, represented with 8 decimals function setRewardsPerBlock(address lpToken, uint32 pwTokenAmount) external; /// @notice Adds LiquidityMining's support for a new lpToken /// @dev Can only be executed by the Owner /// @param lpToken address of the lpToken function newSupportedLpToken(address lpToken) external; /// @notice Deprecation lpToken from the list of tokens supported by the LiquidityMining contract /// @dev Can be executed only by the Owner. Note! That when lpToken is removed, the rewards cannot be claimed. To restore claiming, run function {addLpToken()} and {setRewardsPerBlock()} /// @param lpToken address of the lpToken function phasingOutLpToken(address lpToken) external; /// @notice Pauses current smart contract, it can only be executed by the Owner /// @dev Emits {Paused} event. function pause() external; /// @notice Unpauses current smart contract, it can only be executed by the Owner /// @dev Emits {Unpaused}. function unpause() external; /// @notice Grants maximum allowance for a specified ERC20 token to the Router contract. /// @param erc20Token The address of the ERC20 token for which the allowance is granted. /// @dev This function grants maximum allowance (type(uint256).max) for the specified ERC20 token to the /// Router contract. /// @dev Reverts if the `erc20Token` address is zero. function grantAllowanceForRouter(address erc20Token) external; /// @notice Revokes the allowance for a specified ERC20 token from the Router contract. /// @param erc20Token The address of the ERC20 token for which the allowance is to be revoked. /// @dev This function revokes the allowance for the specified ERC20 token from the Router contract by setting the allowance to zero. /// @dev Reverts if the `erc20Token` address is zero. function revokeAllowanceForRouter(address erc20Token) external; /// @notice Adds a new pause guardian to the contract. /// @param guardians The addresses of the new pause guardians. /// @dev Only the contract owner can call this function. function addPauseGuardians(address[] calldata guardians) external; /// @notice Removes a pause guardian from the contract. /// @param guardians The addresses of the pause guardians to be removed. /// @dev Only the contract owner can call this function. function removePauseGuardians(address[] calldata guardians) external; /// @notice Checks if an address is a pause guardian. /// @param guardian The address to be checked. /// @return A boolean indicating whether the address is a pause guardian (true) or not (false). function isPauseGuardian(address guardian) external view returns (bool); /// @notice Emitted when the account unstakes lpTokens /// @param account account unstaking tokens /// @param lpToken address of lpToken being unstaked /// @param lpTokenAmount of lpTokens to unstake, represented with 18 decimals event LpTokensUnstaked(address account, address lpToken, uint256 lpTokenAmount); /// @notice Emitted when the LiquidityMining's Owner changes the `rewards per block` /// @param lpToken address of lpToken for which the `rewards per block` is changed /// @param newPwTokenAmount new value of `rewards per block`, denominated in Power Token, represented in 8 decimals event RewardsPerBlockChanged(address lpToken, uint256 newPwTokenAmount); /// @notice Emitted when the LiquidityMining's Owner adds support for lpToken /// @param account address of LiquidityMining's Owner /// @param lpToken address of newly supported lpToken event NewLpTokenSupported(address account, address lpToken); /// @notice Emitted when the LiquidityMining's Owner removes ssupport for lpToken /// @param account address of LiquidityMining's Owner /// @param lpToken address of dropped lpToken event LpTokenSupportRemoved(address account, address lpToken); /// @notice Emitted when the account delegates Power Tokens to the LiquidityMining /// @param account performing delegation /// @param lpToken address of lpToken to which Power Token are delegated /// @param pwTokenAmount amount of Power Tokens delegated, represented with 18 decimals event PwTokenDelegated(address account, address lpToken, uint256 pwTokenAmount); /// @notice Emitted when the account undelegates Power Tokens from the LiquidityMining /// @param account undelegating /// @param lpToken address of lpToken /// @param pwTokenAmount amount of Power Token undelegated, represented with 18 decimals event PwTokenUndelegated(address account, address lpToken, uint256 pwTokenAmount); /// @notice Emitted when the PauseManager's address is changed by its owner. /// @param newPauseManager PauseManager's new address event PauseManagerChanged(address indexed newPauseManager); /// @notice Emitted when owner grants allowance for router /// @param erc20Token address of ERC20 token /// @param router address of router event AllowanceGranted(address indexed erc20Token, address indexed router); /// @notice Emitted when owner revokes allowance for router /// @param erc20Token address of ERC20 token /// @param router address of router event AllowanceRevoked(address indexed erc20Token, address indexed router); } // File: lib/ipor-power-tokens/contracts/tokens/PowerToken.sol pragma solidity 0.8.20; ///@title Smart contract responsible for managing Power Token. /// @notice Power Token is retrieved when the account stakes [Staked] Token. /// PowerToken smart contract allows for staking, unstaking of [Staked] Token, delegating, undelegating of Power Token balance to LiquidityMining. contract PowerToken is PowerTokenInternal, IPowerToken { constructor( address routerAddress, address governanceTokenAddress ) PowerTokenInternal(routerAddress, governanceTokenAddress) { _disableInitializers(); } function name() external pure override returns (string memory) { return "Power IPOR"; } function symbol() external pure override returns (string memory) { return "pwIPOR"; } function decimals() external pure override returns (uint8) { return 18; } function getContractId() external pure returns (bytes32) { return 0xbd22bf01cb7daed462db61de31bb111aabcdae27adc748450fb9a9ea1c419cce; } function totalSupply() external view override returns (uint256) { return MathOperation.division(_baseTotalSupply * _calculateInternalExchangeRate(), 1e18); } function balanceOf(address account) external view override returns (uint256) { return _balanceOf(account); } function delegatedToLiquidityMiningBalanceOf( address account ) external view override returns (uint256) { return _delegatedToLiquidityMiningBalance[account]; } function getUnstakeWithoutCooldownFee() external view override returns (uint256) { return _unstakeWithoutCooldownFee; } function getActiveCooldown( address account ) external view returns (PowerTokenTypes.PwTokenCooldown memory) { return _cooldowns[account]; } function cooldownInternal( address account, uint256 pwTokenAmount ) external override whenNotPaused onlyRouter { uint256 availablePwTokenAmount = _calculateBaseAmountToPwToken( _baseBalance[account], _calculateInternalExchangeRate() ) - _delegatedToLiquidityMiningBalance[account]; require( availablePwTokenAmount >= pwTokenAmount, Errors.ACC_AVAILABLE_POWER_TOKEN_BALANCE_IS_TOO_LOW ); _cooldowns[account] = PowerTokenTypes.PwTokenCooldown( block.timestamp + COOL_DOWN_IN_SECONDS, pwTokenAmount ); emit CooldownChanged(pwTokenAmount, block.timestamp + COOL_DOWN_IN_SECONDS); } function cancelCooldownInternal(address account) external override whenNotPaused onlyRouter { delete _cooldowns[account]; emit CooldownChanged(0, 0); } function redeemInternal( address account ) external override whenNotPaused onlyRouter returns (uint256 transferAmount) { PowerTokenTypes.PwTokenCooldown memory accountCooldown = _cooldowns[account]; transferAmount = accountCooldown.pwTokenAmount; require(block.timestamp >= accountCooldown.endTimestamp, Errors.COOL_DOWN_NOT_FINISH); require(transferAmount > 0, Errors.VALUE_NOT_GREATER_THAN_ZERO); uint256 exchangeRate = _calculateInternalExchangeRate(); uint256 baseAmountToUnstake = MathOperation.division(transferAmount * 1e18, exchangeRate); require( _baseBalance[account] >= baseAmountToUnstake, Errors.ACCOUNT_BASE_BALANCE_IS_TOO_LOW ); _baseBalance[account] -= baseAmountToUnstake; _baseTotalSupply -= baseAmountToUnstake; delete _cooldowns[account]; emit Redeem(account, transferAmount); } function addGovernanceTokenInternal( PowerTokenTypes.UpdateGovernanceToken memory updateGovernanceToken ) external onlyRouter { require( updateGovernanceToken.governanceTokenAmount != 0, Errors.VALUE_NOT_GREATER_THAN_ZERO ); uint256 exchangeRate = _calculateInternalExchangeRate(); uint256 baseAmount = MathOperation.division( updateGovernanceToken.governanceTokenAmount * 1e18, exchangeRate ); _baseBalance[updateGovernanceToken.beneficiary] += baseAmount; _baseTotalSupply += baseAmount; emit GovernanceTokenAdded( updateGovernanceToken.beneficiary, updateGovernanceToken.governanceTokenAmount, exchangeRate, baseAmount ); } function removeGovernanceTokenWithFeeInternal( PowerTokenTypes.UpdateGovernanceToken memory updateGovernanceToken ) external onlyRouter returns (uint256 governanceTokenAmountToTransfer) { require( updateGovernanceToken.governanceTokenAmount > 0, Errors.VALUE_NOT_GREATER_THAN_ZERO ); address account = updateGovernanceToken.beneficiary; uint256 exchangeRate = _calculateInternalExchangeRate(); uint256 availablePwTokenAmount = _getAvailablePwTokenAmount(account, exchangeRate); require( availablePwTokenAmount >= updateGovernanceToken.governanceTokenAmount, Errors.ACC_AVAILABLE_POWER_TOKEN_BALANCE_IS_TOO_LOW ); uint256 baseAmountToUnstake = MathOperation.division( updateGovernanceToken.governanceTokenAmount * 1e18, exchangeRate ); require( _baseBalance[account] >= baseAmountToUnstake, Errors.ACCOUNT_BASE_BALANCE_IS_TOO_LOW ); _baseBalance[account] -= baseAmountToUnstake; _baseTotalSupply -= baseAmountToUnstake; governanceTokenAmountToTransfer = _calculateBaseAmountToPwToken( _calculateAmountWithCooldownFeeSubtracted(baseAmountToUnstake), exchangeRate ); emit GovernanceTokenRemovedWithFee( account, updateGovernanceToken.governanceTokenAmount, exchangeRate, updateGovernanceToken.governanceTokenAmount - governanceTokenAmountToTransfer ); } function delegateInternal( address account, uint256 pwTokenAmount ) external override whenNotPaused onlyRouter { require( _getAvailablePwTokenAmount(account, _calculateInternalExchangeRate()) >= pwTokenAmount, Errors.ACC_AVAILABLE_POWER_TOKEN_BALANCE_IS_TOO_LOW ); _delegatedToLiquidityMiningBalance[account] += pwTokenAmount; emit Delegated(account, pwTokenAmount); } function undelegateInternal( address account, uint256 pwTokenAmount ) external override whenNotPaused onlyRouter { require( _delegatedToLiquidityMiningBalance[account] >= pwTokenAmount, Errors.ACC_DELEGATED_TO_LIQUIDITY_MINING_BALANCE_IS_TOO_LOW ); _delegatedToLiquidityMiningBalance[account] -= pwTokenAmount; emit Undelegated(account, pwTokenAmount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"routerAddress","type":"address"},{"internalType":"address","name":"governanceTokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"erc20Token","type":"address"},{"indexed":true,"internalType":"address","name":"router","type":"address"}],"name":"AllowanceGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"erc20Token","type":"address"},{"indexed":true,"internalType":"address","name":"router","type":"address"}],"name":"AllowanceRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"appointedOwner","type":"address"}],"name":"AppointedToTransferOwnership","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"pwTokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTimestamp","type":"uint256"}],"name":"CooldownChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"pwTokenAmounts","type":"uint256"}],"name":"Delegated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"governanceTokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"internalExchangeRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"baseAmount","type":"uint256"}],"name":"GovernanceTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"pwTokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"internalExchangeRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"GovernanceTokenRemovedWithFee","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":"newLiquidityMining","type":"address"}],"name":"LiquidityMiningChanged","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":true,"internalType":"address[]","name":"guardians","type":"address[]"}],"name":"PauseGuardiansAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address[]","name":"guardians","type":"address[]"}],"name":"PauseGuardiansRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newPauseManager","type":"address"}],"name":"PauseManagerChanged","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":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"pwTokenAmount","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"rewardsAmount","type":"uint256"}],"name":"RewardsReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"pwTokenAmounts","type":"uint256"}],"name":"Undelegated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"UnstakeWithoutCooldownFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"COOL_DOWN_IN_SECONDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"governanceTokenAmount","type":"uint256"}],"internalType":"struct PowerTokenTypes.UpdateGovernanceToken","name":"updateGovernanceToken","type":"tuple"}],"name":"addGovernanceTokenInternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"guardians","type":"address[]"}],"name":"addPauseGuardians","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculateExchangeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"cancelCooldownInternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"confirmTransferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"pwTokenAmount","type":"uint256"}],"name":"cooldownInternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"pwTokenAmount","type":"uint256"}],"name":"delegateInternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"delegatedToLiquidityMiningBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getActiveCooldown","outputs":[{"components":[{"internalType":"uint256","name":"endTimestamp","type":"uint256"},{"internalType":"uint256","name":"pwTokenAmount","type":"uint256"}],"internalType":"struct PowerTokenTypes.PwTokenCooldown","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractId","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getGovernanceToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUnstakeWithoutCooldownFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Token","type":"address"}],"name":"grantAllowanceForRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"guardian","type":"address"}],"name":"isPauseGuardian","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","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":[{"internalType":"address","name":"account","type":"address"}],"name":"redeemInternal","outputs":[{"internalType":"uint256","name":"transferAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"governanceTokenAmount","type":"uint256"}],"internalType":"struct PowerTokenTypes.UpdateGovernanceToken","name":"updateGovernanceToken","type":"tuple"}],"name":"removeGovernanceTokenWithFeeInternal","outputs":[{"internalType":"uint256","name":"governanceTokenAmountToTransfer","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"guardians","type":"address[]"}],"name":"removePauseGuardians","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Token","type":"address"}],"name":"revokeAllowanceForRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"routerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"unstakeWithoutCooldownFee","type":"uint256"}],"name":"setUnstakeWithoutCooldownFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupplyBase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"appointedOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"pwTokenAmount","type":"uint256"}],"name":"undelegateInternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","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"}]
Contract Creation Code
60e0604052306080523480156200001557600080fd5b5060405162002db938038062002db9833981016040819052620000389162000297565b81816200004e6001600160a01b0382166200016b565b6001600160a01b0390811660c052620000699083166200016b565b6001600160a01b031660a0816001600160a01b0316815250507fdba05ed67d0251facfcab8345f27ccd3e72b5a1da8cebfabbcccf4316e6d053c60001b816001600160a01b0316634788cabf6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620000e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200010b9190620002cf565b1460405180604001604052806006815260200165282a2f9b989b60d11b81525090620001555760405162461bcd60e51b81526004016200014c9190620002e9565b60405180910390fd5b5062000163915050620001bc565b505062000339565b60408051808201909152600681526550545f37313560d01b60208201526000906001600160a01b038316620001b55760405162461bcd60e51b81526004016200014c9190620002e9565b5090919050565b600054610100900460ff1615620002265760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b60648201526084016200014c565b60005460ff9081161462000278576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b80516001600160a01b03811681146200029257600080fd5b919050565b60008060408385031215620002ab57600080fd5b620002b6836200027a565b9150620002c6602084016200027a565b90509250929050565b600060208284031215620002e257600080fd5b5051919050565b600060208083528351808285015260005b818110156200031857858101830151858201604001528201620002fa565b506000604082860101526040601f19601f8301168501019250505092915050565b60805160a05160c0516129e7620003d2600039600081816104290152611b9b0152600081816103ab015281816107e00152818161097201528181610a4801528181610fbd0152818161125c01528181611437015281816114b60152818161157b015281816116d10152611852015260008181610cb101528181610cf101528181610d9c01528181610ddc0152610e5801526129e76000f3fe60806040526004361061023a5760003560e01c80636cec8a1b1161012e578063aaf10f42116100ab578063cc29516a1161006f578063cc29516a14610724578063dc94b4a114610739578063e0d553fe14610759578063f2fde38b14610779578063f596c0e11461079957600080fd5b8063aaf10f421461068f578063ac522e24146106a4578063bd2a36f4146106c4578063c41851b2146106e4578063c43b66871461070457600080fd5b806384074b15116100f257806384074b151461058f5780638456cb59146105af5780638da5cb5b146105c457806395d89b41146105e2578063a760f8301461061157600080fd5b80636cec8a1b14610505578063706fde111461052557806370a0823114610545578063715018a6146105655780638129fc1c1461057a57600080fd5b80633268cc56116101bc5780634788cabf116101805780634788cabf1461047d5780634f1ef286146104b057806352d1902d146104c35780635c975abb146104d85780636bee47ef146104f057600080fd5b80633268cc56146103995780633659cfe6146103e55780633f4ba83a146104055780633f8a037d1461041a5780634261f4d81461044d57600080fd5b80630da85802116102035780630da85802146103125780630e05dc6d1461033257806318160ddd14610352578063278cc7a014610367578063313ce5671461037d57600080fd5b8062c077341461023f57806306fdde031461028957806309dee33a146102c55780630c5c7892146102e75780630d8e6e2c146102fd575b600080fd5b34801561024b57600080fd5b5061027661025a3660046124e1565b6001600160a01b03166000908152610132602052604090205490565b6040519081526020015b60405180910390f35b34801561029557600080fd5b5060408051808201909152600a8152692837bbb2b91024a827a960b11b60208201525b6040516102809190612520565b3480156102d157600080fd5b506102e56102e0366004612553565b6107b0565b005b3480156102f357600080fd5b5061013554610276565b34801561030957600080fd5b506107d1610276565b34801561031e57600080fd5b506102e561032d3660046124e1565b610942565b34801561033e57600080fd5b5061027661034d3660046124e1565b610a16565b34801561035e57600080fd5b50610276610c79565b34801561037357600080fd5b5061013454610276565b34801561038957600080fd5b5060405160128152602001610280565b3480156103a557600080fd5b506103cd7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610280565b3480156103f157600080fd5b506102e56104003660046124e1565b610ca7565b34801561041157600080fd5b506102e5610d6f565b34801561042657600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006103cd565b34801561045957600080fd5b5061046d6104683660046124e1565b610d81565b6040519015158152602001610280565b34801561048957600080fd5b507fbd22bf01cb7daed462db61de31bb111aabcdae27adc748450fb9a9ea1c419cce610276565b6102e56104be3660046125c4565b610d92565b3480156104cf57600080fd5b50610276610e4b565b3480156104e457600080fd5b5060335460ff1661046d565b3480156104fc57600080fd5b50610276610efe565b34801561051157600080fd5b506102e561052036600461266a565b610f08565b34801561053157600080fd5b506102e5610540366004612553565b610f8d565b34801561055157600080fd5b506102766105603660046124e1565b6110d5565b34801561057157600080fd5b506102e56110e0565b34801561058657600080fd5b506102e5611105565b34801561059b57600080fd5b506102e56105aa366004612553565b61122c565b3480156105bb57600080fd5b506102e5611356565b3480156105d057600080fd5b5060fb546001600160a01b03166103cd565b3480156105ee57600080fd5b50604080518082019091526006815265383ba4a827a960d11b60208201526102b8565b34801561061d57600080fd5b5061067461062c3660046124e1565b6040805180820190915260008082526020820152506001600160a01b031660009081526101336020908152604091829020825180840190935280548352600101549082015290565b60408051825181526020928301519281019290925201610280565b34801561069b57600080fd5b506103cd6113a5565b3480156106b057600080fd5b506102e56106bf366004612683565b6113c1565b3480156106d057600080fd5b506102e56106df3660046124e1565b6113d3565b3480156106f057600080fd5b506102e56106ff3660046124e1565b611517565b34801561071057600080fd5b506102e561071f366004612683565b611632565b34801561073057600080fd5b506102e5611644565b34801561074557600080fd5b506102e56107543660046126f8565b6116a9565b34801561076557600080fd5b506102766107743660046126f8565b611827565b34801561078557600080fd5b506102e56107943660046124e1565b611a88565b3480156107a557600080fd5b506102766212750081565b6107b8611b20565b604080518082019091526006815265282a2f9b991960d11b6020820152336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108275760405162461bcd60e51b815260040161081e9190612520565b60405180910390fd5b506001600160a01b0382166000908152610132602090815260408083205461013190925282205461085f9061085a611b66565b611c44565b6108699190612765565b905081811015604051806040016040528060068152602001650a0a8be6e60760d31b815250906108ac5760405162461bcd60e51b815260040161081e9190612520565b50604051806040016040528062127500426108c79190612778565b815260209081018490526001600160a01b0385166000908152610133825260409020825181559101516001909101557f0731af75921ee6c66096a5c95daa1adcf95ff01e0ce8063a2369cb218ee4bcc9826109256212750042612778565b6040805192835260208301919091520160405180910390a1505050565b61094a611b20565b604080518082019091526006815265282a2f9b991960d11b6020820152336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109b05760405162461bcd60e51b815260040161081e9190612520565b506001600160a01b03811660009081526101336020526040808220828155600101829055517f0731af75921ee6c66096a5c95daa1adcf95ff01e0ce8063a2369cb218ee4bcc991610a0b918190918252602082015260400190565b60405180910390a150565b6000610a20611b20565b604080518082019091526006815265282a2f9b991960d11b6020820152336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610a865760405162461bcd60e51b815260040161081e9190612520565b50506001600160a01b0381166000908152610133602090815260409182902082518084018452815480825260019092015481840181905284518086019095526006855265050545f3731360d41b93850193909352919290421015610afd5760405162461bcd60e51b815260040161081e9190612520565b5060408051808201909152600681526550545f37313760d01b602082015282610b395760405162461bcd60e51b815260040161081e9190612520565b506000610b44611b66565b90506000610b63610b5d85670de0b6b3a764000061278b565b83611c5a565b9050806101316000876001600160a01b03166001600160a01b031681526020019081526020016000205410156040518060400160405280600681526020016550545f37303560d01b81525090610bcc5760405162461bcd60e51b815260040161081e9190612520565b506001600160a01b0385166000908152610131602052604081208054839290610bf6908490612765565b92505081905550806101346000828254610c109190612765565b90915550506001600160a01b0385166000818152610133602052604080822082815560010191909155517f222838db2794d11532d940e8dec38ae307ed0b63cd97c233322e221f998767a690610c699087815260200190565b60405180910390a2505050919050565b6000610ca2610c86611b66565b61013454610c94919061278b565b670de0b6b3a7640000611c5a565b905090565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610cef5760405162461bcd60e51b815260040161081e906127a2565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610d216113a5565b6001600160a01b031614610d475760405162461bcd60e51b815260040161081e906127ee565b610d5081611c7c565b60408051600080825260208201909252610d6c91839190611c84565b50565b610d77611df4565b610d7f611e4e565b565b6000610d8c82611ea0565b92915050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610dda5760405162461bcd60e51b815260040161081e906127a2565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610e0c6113a5565b6001600160a01b031614610e325760405162461bcd60e51b815260040161081e906127ee565b610e3b82611c7c565b610e4782826001611c84565b5050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610eeb5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000606482015260840161081e565b5060008051602061296b83398151915290565b6000610ca2611b66565b610f10611df4565b604080518082019091526006815265141517cdcc4d60d21b6020820152670de0b6b3a7640000821115610f565760405162461bcd60e51b815260040161081e9190612520565b506101358190556040518181527f3ac923e7afda8c05126e7a2e58abcc5ab50b88583cc7f13dafc2c186e1504bb490602001610a0b565b610f95611b20565b604080518082019091526006815265282a2f9b991960d11b6020820152336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610ffb5760405162461bcd60e51b815260040161081e9190612520565b50806101326000846001600160a01b03166001600160a01b031681526020019081526020016000205410156040518060400160405280600681526020016550545f37303760d01b815250906110635760405162461bcd60e51b815260040161081e9190612520565b506001600160a01b038216600090815261013260205260408120805483929061108d908490612765565b90915550506040518181526001600160a01b038316907f4ae68879209bc4b489a38251122202a3653305e3d95a27baf7a5681410c90b38906020015b60405180910390a25050565b6000610d8c82611ece565b6110e8611df4565b6110f26000611ef4565b61012d80546001600160a01b0319169055565b600054610100900460ff16158080156111255750600054600160ff909116105b8061113f5750303b15801561113f575060005460ff166001145b6111a25760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161081e565b6000805460ff1916600117905580156111c5576000805461ff0019166101001790555b6111cd611f46565b6111d5611f79565b6111dd611fa9565b6706f05b59d3b20000610135558015610d6c576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602001610a0b565b611234611b20565b604080518082019091526006815265282a2f9b991960d11b6020820152336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461129a5760405162461bcd60e51b815260040161081e9190612520565b50806112ad836112a8611b66565b611fd0565b1015604051806040016040528060068152602001650a0a8be6e60760d31b815250906112ec5760405162461bcd60e51b815260040161081e9190612520565b506001600160a01b0382166000908152610132602052604081208054839290611316908490612778565b90915550506040518181526001600160a01b038316907f83b3f5ce88736f0128f880f5cac19836da52ea5c5ca7704c7b38f3b06fffd7ab906020016110c9565b61135f33611ea0565b6040518060400160405280600681526020016550545f37323360d01b8152509061139c5760405162461bcd60e51b815260040161081e9190612520565b50610d7f612024565b60008051602061296b833981519152546001600160a01b031690565b6113c9611df4565b610e478282612061565b6113db611df4565b60408051808201909152600681526550545f37313560d01b60208201526001600160a01b03821661141f5760405162461bcd60e51b815260040161081e9190612520565b5060405163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526000602483015282169063095ea7b3906044016020604051808303816000875af115801561148f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b3919061283a565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03167f8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b60405160405180910390a350565b61151f611df4565b60408051808201909152600681526550545f37313560d01b60208201526001600160a01b0382166115635760405162461bcd60e51b815260040161081e9190612520565b5060405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152600019602483015282169063095ea7b3906044016020604051808303816000875af11580156115d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f8919061283a565b506040516001600160a01b0382169033907ff3b72c0d64f9479054ffaeb168e65382ff1b4060c9d8005e7724492477234dde90600090a350565b61163a611df4565b610e47828261211c565b61012d5460408051808201909152600681526550545f37313960d01b6020820152906001600160a01b0316331461168e5760405162461bcd60e51b815260040161081e9190612520565b5061012d80546001600160a01b0319169055610d7f33611ef4565b604080518082019091526006815265282a2f9b991960d11b6020820152336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461170f5760405162461bcd60e51b815260040161081e9190612520565b508060200151600014156040518060400160405280600681526020016550545f37313760d01b815250906117565760405162461bcd60e51b815260040161081e9190612520565b506000611761611b66565b905060006117808360200151670de0b6b3a7640000610b5d919061278b565b83516001600160a01b0316600090815261013160205260408120805492935083929091906117af908490612778565b925050819055508061013460008282546117c99190612778565b90915550508251602080850151604080519182529181018590529081018390526001600160a01b03909116907f354691a432effe5bf8391cd4794cd6b1a99f150658ea7bb1eac06ec456537e9d9060600160405180910390a2505050565b604080518082019091526006815265282a2f9b991960d11b6020820152600090336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146118905760405162461bcd60e51b815260040161081e9190612520565b5060008260200151116040518060400160405280600681526020016550545f37313760d01b815250906118d65760405162461bcd60e51b815260040161081e9190612520565b50815160006118e3611b66565b905060006118f18383611fd0565b90508460200151811015604051806040016040528060068152602001650a0a8be6e60760d31b815250906119385760405162461bcd60e51b815260040161081e9190612520565b50600061195c8660200151670de0b6b3a7640000611956919061278b565b84611c5a565b9050806101316000866001600160a01b03166001600160a01b031681526020019081526020016000205410156040518060400160405280600681526020016550545f37303560d01b815250906119c55760405162461bcd60e51b815260040161081e9190612520565b506001600160a01b03841660009081526101316020526040812080548392906119ef908490612765565b92505081905550806101346000828254611a099190612765565b90915550611a219050611a1b826121d7565b84611c44565b60208701519095506001600160a01b038516907f8a0c915efe7fb016672bd9345663d34dcd2d3c96d0f89b4f9d1677201997a5139085611a618983612765565b6040805193845260208401929092529082015260600160405180910390a250505050919050565b611a90611df4565b60408051808201909152600681526550545f37313560d01b60208201526001600160a01b038216611ad45760405162461bcd60e51b815260040161081e9190612520565b5061012d80546001600160a01b0319166001600160a01b0383169081179091556040517f3ec7bb1d452f3c36260fa8ef678a597fd97574d8ec42f6dc98ffce3dbc91228f90600090a250565b60335460ff1615610d7f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161081e565b61013454600090808203611b8357670de0b6b3a764000091505090565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015611bea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0e919061285c565b905080600003611c2857670de0b6b3a76400009250505090565b611c3d610b5d82670de0b6b3a764000061278b565b9250505090565b6000611c53610c94838561278b565b9392505050565b600081611c68600282612875565b611c729085612778565b611c539190612875565b610d6c611df4565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611cbc57611cb7836121fe565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611d16575060408051601f3d908101601f19168201909252611d139181019061285c565b60015b611d795760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840161081e565b60008051602061296b8339815191528114611de85760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840161081e565b50611cb783838361229a565b60fb546001600160a01b03163314610d7f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161081e565b611e566122c5565b6033805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080611eab61230e565b6001600160a01b0390931660009081526020939093525050604090205460011490565b6001600160a01b03811660009081526101316020526040812054610d8c9061085a611b66565b60fb80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16611f6d5760405162461bcd60e51b815260040161081e90612897565b6033805460ff19169055565b600054610100900460ff16611fa05760405162461bcd60e51b815260040161081e90612897565b610d7f33611ef4565b600054610100900460ff16610d7f5760405162461bcd60e51b815260040161081e90612897565b6001600160a01b03821660009081526101336020908152604080832060010154610132835281842054610131909352908320549091906120109085611c44565b61201a9190612765565b611c539190612765565b61202c611b20565b6033805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e833390565b80600081900361207057505050565b600061207a61230e565b905060005b828110156120d557600082600087878581811061209e5761209e6128e2565b90506020020160208101906120b391906124e1565b6001600160a01b0316815260208101919091526040016000205560010161207f565b5083836040516120e69291906128f8565b604051908190038120907fe36d877f5755caee7e117ab1005d1acd030211e8a7ad495316fcaf980d0d054c90600090a250505050565b80600081900361212b57505050565b600061213561230e565b905060005b82811015612190576001826000878785818110612159576121596128e2565b905060200201602081019061216e91906124e1565b6001600160a01b0316815260208101919091526040016000205560010161213a565b5083836040516121a19291906128f8565b604051908190038120907f7802196382882a6ea8cc8c8a1d5f53efe52da8a8d8a0e6f6ce86662996f181df90600090a250505050565b6000610d8c8261013554670de0b6b3a76400006121f49190612765565b610c94919061278b565b6001600160a01b0381163b61226b5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161081e565b60008051602061296b83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6122a38361231b565b6000825111806122b05750805b15611cb7576122bf838361235b565b50505050565b60335460ff16610d7f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161081e565b600080610d8c6003612380565b612324816121fe565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060611c53838360405180606001604052806027815260200161298b602791396123a2565b6000620f424082600481111561239857612398612938565b610d8c9190612778565b6060600080856001600160a01b0316856040516123bf919061294e565b600060405180830381855af49150503d80600081146123fa576040519150601f19603f3d011682016040523d82523d6000602084013e6123ff565b606091505b50915091506124108683838761241a565b9695505050505050565b60608315612489578251600003612482576001600160a01b0385163b6124825760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161081e565b5081612493565b612493838361249b565b949350505050565b8151156124ab5781518083602001fd5b8060405162461bcd60e51b815260040161081e9190612520565b80356001600160a01b03811681146124dc57600080fd5b919050565b6000602082840312156124f357600080fd5b611c53826124c5565b60005b838110156125175781810151838201526020016124ff565b50506000910152565b602081526000825180602084015261253f8160408501602087016124fc565b601f01601f19169190910160400192915050565b6000806040838503121561256657600080fd5b61256f836124c5565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156125bc576125bc61257d565b604052919050565b600080604083850312156125d757600080fd5b6125e0836124c5565b915060208084013567ffffffffffffffff808211156125fe57600080fd5b818601915086601f83011261261257600080fd5b8135818111156126245761262461257d565b612636601f8201601f19168501612593565b9150808252878482850101111561264c57600080fd5b80848401858401376000848284010152508093505050509250929050565b60006020828403121561267c57600080fd5b5035919050565b6000806020838503121561269657600080fd5b823567ffffffffffffffff808211156126ae57600080fd5b818501915085601f8301126126c257600080fd5b8135818111156126d157600080fd5b8660208260051b85010111156126e657600080fd5b60209290920196919550909350505050565b60006040828403121561270a57600080fd5b6040516040810181811067ffffffffffffffff8211171561272d5761272d61257d565b604052612739836124c5565b8152602083013560208201528091505092915050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610d8c57610d8c61274f565b80820180821115610d8c57610d8c61274f565b8082028115828204841417610d8c57610d8c61274f565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60006020828403121561284c57600080fd5b81518015158114611c5357600080fd5b60006020828403121561286e57600080fd5b5051919050565b60008261289257634e487b7160e01b600052601260045260246000fd5b500490565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60008184825b8581101561292d576001600160a01b03612917836124c5565b16835260209283019291909101906001016128fe565b509095945050505050565b634e487b7160e01b600052602160045260246000fd5b600082516129608184602087016124fc565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220301b54d45842e49086b3aae88e1c6f6e89fe47466535573adfdaed69441b10da64736f6c6343000814003300000000000000000000000016d104009964e694761c0bf09d7be49b7e3c26fd0000000000000000000000001e4746dc744503b53b4a082cb3607b169a289090
Deployed Bytecode
0x60806040526004361061023a5760003560e01c80636cec8a1b1161012e578063aaf10f42116100ab578063cc29516a1161006f578063cc29516a14610724578063dc94b4a114610739578063e0d553fe14610759578063f2fde38b14610779578063f596c0e11461079957600080fd5b8063aaf10f421461068f578063ac522e24146106a4578063bd2a36f4146106c4578063c41851b2146106e4578063c43b66871461070457600080fd5b806384074b15116100f257806384074b151461058f5780638456cb59146105af5780638da5cb5b146105c457806395d89b41146105e2578063a760f8301461061157600080fd5b80636cec8a1b14610505578063706fde111461052557806370a0823114610545578063715018a6146105655780638129fc1c1461057a57600080fd5b80633268cc56116101bc5780634788cabf116101805780634788cabf1461047d5780634f1ef286146104b057806352d1902d146104c35780635c975abb146104d85780636bee47ef146104f057600080fd5b80633268cc56146103995780633659cfe6146103e55780633f4ba83a146104055780633f8a037d1461041a5780634261f4d81461044d57600080fd5b80630da85802116102035780630da85802146103125780630e05dc6d1461033257806318160ddd14610352578063278cc7a014610367578063313ce5671461037d57600080fd5b8062c077341461023f57806306fdde031461028957806309dee33a146102c55780630c5c7892146102e75780630d8e6e2c146102fd575b600080fd5b34801561024b57600080fd5b5061027661025a3660046124e1565b6001600160a01b03166000908152610132602052604090205490565b6040519081526020015b60405180910390f35b34801561029557600080fd5b5060408051808201909152600a8152692837bbb2b91024a827a960b11b60208201525b6040516102809190612520565b3480156102d157600080fd5b506102e56102e0366004612553565b6107b0565b005b3480156102f357600080fd5b5061013554610276565b34801561030957600080fd5b506107d1610276565b34801561031e57600080fd5b506102e561032d3660046124e1565b610942565b34801561033e57600080fd5b5061027661034d3660046124e1565b610a16565b34801561035e57600080fd5b50610276610c79565b34801561037357600080fd5b5061013454610276565b34801561038957600080fd5b5060405160128152602001610280565b3480156103a557600080fd5b506103cd7f00000000000000000000000016d104009964e694761c0bf09d7be49b7e3c26fd81565b6040516001600160a01b039091168152602001610280565b3480156103f157600080fd5b506102e56104003660046124e1565b610ca7565b34801561041157600080fd5b506102e5610d6f565b34801561042657600080fd5b507f0000000000000000000000001e4746dc744503b53b4a082cb3607b169a2890906103cd565b34801561045957600080fd5b5061046d6104683660046124e1565b610d81565b6040519015158152602001610280565b34801561048957600080fd5b507fbd22bf01cb7daed462db61de31bb111aabcdae27adc748450fb9a9ea1c419cce610276565b6102e56104be3660046125c4565b610d92565b3480156104cf57600080fd5b50610276610e4b565b3480156104e457600080fd5b5060335460ff1661046d565b3480156104fc57600080fd5b50610276610efe565b34801561051157600080fd5b506102e561052036600461266a565b610f08565b34801561053157600080fd5b506102e5610540366004612553565b610f8d565b34801561055157600080fd5b506102766105603660046124e1565b6110d5565b34801561057157600080fd5b506102e56110e0565b34801561058657600080fd5b506102e5611105565b34801561059b57600080fd5b506102e56105aa366004612553565b61122c565b3480156105bb57600080fd5b506102e5611356565b3480156105d057600080fd5b5060fb546001600160a01b03166103cd565b3480156105ee57600080fd5b50604080518082019091526006815265383ba4a827a960d11b60208201526102b8565b34801561061d57600080fd5b5061067461062c3660046124e1565b6040805180820190915260008082526020820152506001600160a01b031660009081526101336020908152604091829020825180840190935280548352600101549082015290565b60408051825181526020928301519281019290925201610280565b34801561069b57600080fd5b506103cd6113a5565b3480156106b057600080fd5b506102e56106bf366004612683565b6113c1565b3480156106d057600080fd5b506102e56106df3660046124e1565b6113d3565b3480156106f057600080fd5b506102e56106ff3660046124e1565b611517565b34801561071057600080fd5b506102e561071f366004612683565b611632565b34801561073057600080fd5b506102e5611644565b34801561074557600080fd5b506102e56107543660046126f8565b6116a9565b34801561076557600080fd5b506102766107743660046126f8565b611827565b34801561078557600080fd5b506102e56107943660046124e1565b611a88565b3480156107a557600080fd5b506102766212750081565b6107b8611b20565b604080518082019091526006815265282a2f9b991960d11b6020820152336001600160a01b037f00000000000000000000000016d104009964e694761c0bf09d7be49b7e3c26fd16146108275760405162461bcd60e51b815260040161081e9190612520565b60405180910390fd5b506001600160a01b0382166000908152610132602090815260408083205461013190925282205461085f9061085a611b66565b611c44565b6108699190612765565b905081811015604051806040016040528060068152602001650a0a8be6e60760d31b815250906108ac5760405162461bcd60e51b815260040161081e9190612520565b50604051806040016040528062127500426108c79190612778565b815260209081018490526001600160a01b0385166000908152610133825260409020825181559101516001909101557f0731af75921ee6c66096a5c95daa1adcf95ff01e0ce8063a2369cb218ee4bcc9826109256212750042612778565b6040805192835260208301919091520160405180910390a1505050565b61094a611b20565b604080518082019091526006815265282a2f9b991960d11b6020820152336001600160a01b037f00000000000000000000000016d104009964e694761c0bf09d7be49b7e3c26fd16146109b05760405162461bcd60e51b815260040161081e9190612520565b506001600160a01b03811660009081526101336020526040808220828155600101829055517f0731af75921ee6c66096a5c95daa1adcf95ff01e0ce8063a2369cb218ee4bcc991610a0b918190918252602082015260400190565b60405180910390a150565b6000610a20611b20565b604080518082019091526006815265282a2f9b991960d11b6020820152336001600160a01b037f00000000000000000000000016d104009964e694761c0bf09d7be49b7e3c26fd1614610a865760405162461bcd60e51b815260040161081e9190612520565b50506001600160a01b0381166000908152610133602090815260409182902082518084018452815480825260019092015481840181905284518086019095526006855265050545f3731360d41b93850193909352919290421015610afd5760405162461bcd60e51b815260040161081e9190612520565b5060408051808201909152600681526550545f37313760d01b602082015282610b395760405162461bcd60e51b815260040161081e9190612520565b506000610b44611b66565b90506000610b63610b5d85670de0b6b3a764000061278b565b83611c5a565b9050806101316000876001600160a01b03166001600160a01b031681526020019081526020016000205410156040518060400160405280600681526020016550545f37303560d01b81525090610bcc5760405162461bcd60e51b815260040161081e9190612520565b506001600160a01b0385166000908152610131602052604081208054839290610bf6908490612765565b92505081905550806101346000828254610c109190612765565b90915550506001600160a01b0385166000818152610133602052604080822082815560010191909155517f222838db2794d11532d940e8dec38ae307ed0b63cd97c233322e221f998767a690610c699087815260200190565b60405180910390a2505050919050565b6000610ca2610c86611b66565b61013454610c94919061278b565b670de0b6b3a7640000611c5a565b905090565b6001600160a01b037f00000000000000000000000078dbf1ea2042fbef4af542aaaa81adb26884a0f7163003610cef5760405162461bcd60e51b815260040161081e906127a2565b7f00000000000000000000000078dbf1ea2042fbef4af542aaaa81adb26884a0f76001600160a01b0316610d216113a5565b6001600160a01b031614610d475760405162461bcd60e51b815260040161081e906127ee565b610d5081611c7c565b60408051600080825260208201909252610d6c91839190611c84565b50565b610d77611df4565b610d7f611e4e565b565b6000610d8c82611ea0565b92915050565b6001600160a01b037f00000000000000000000000078dbf1ea2042fbef4af542aaaa81adb26884a0f7163003610dda5760405162461bcd60e51b815260040161081e906127a2565b7f00000000000000000000000078dbf1ea2042fbef4af542aaaa81adb26884a0f76001600160a01b0316610e0c6113a5565b6001600160a01b031614610e325760405162461bcd60e51b815260040161081e906127ee565b610e3b82611c7c565b610e4782826001611c84565b5050565b6000306001600160a01b037f00000000000000000000000078dbf1ea2042fbef4af542aaaa81adb26884a0f71614610eeb5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000606482015260840161081e565b5060008051602061296b83398151915290565b6000610ca2611b66565b610f10611df4565b604080518082019091526006815265141517cdcc4d60d21b6020820152670de0b6b3a7640000821115610f565760405162461bcd60e51b815260040161081e9190612520565b506101358190556040518181527f3ac923e7afda8c05126e7a2e58abcc5ab50b88583cc7f13dafc2c186e1504bb490602001610a0b565b610f95611b20565b604080518082019091526006815265282a2f9b991960d11b6020820152336001600160a01b037f00000000000000000000000016d104009964e694761c0bf09d7be49b7e3c26fd1614610ffb5760405162461bcd60e51b815260040161081e9190612520565b50806101326000846001600160a01b03166001600160a01b031681526020019081526020016000205410156040518060400160405280600681526020016550545f37303760d01b815250906110635760405162461bcd60e51b815260040161081e9190612520565b506001600160a01b038216600090815261013260205260408120805483929061108d908490612765565b90915550506040518181526001600160a01b038316907f4ae68879209bc4b489a38251122202a3653305e3d95a27baf7a5681410c90b38906020015b60405180910390a25050565b6000610d8c82611ece565b6110e8611df4565b6110f26000611ef4565b61012d80546001600160a01b0319169055565b600054610100900460ff16158080156111255750600054600160ff909116105b8061113f5750303b15801561113f575060005460ff166001145b6111a25760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161081e565b6000805460ff1916600117905580156111c5576000805461ff0019166101001790555b6111cd611f46565b6111d5611f79565b6111dd611fa9565b6706f05b59d3b20000610135558015610d6c576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602001610a0b565b611234611b20565b604080518082019091526006815265282a2f9b991960d11b6020820152336001600160a01b037f00000000000000000000000016d104009964e694761c0bf09d7be49b7e3c26fd161461129a5760405162461bcd60e51b815260040161081e9190612520565b50806112ad836112a8611b66565b611fd0565b1015604051806040016040528060068152602001650a0a8be6e60760d31b815250906112ec5760405162461bcd60e51b815260040161081e9190612520565b506001600160a01b0382166000908152610132602052604081208054839290611316908490612778565b90915550506040518181526001600160a01b038316907f83b3f5ce88736f0128f880f5cac19836da52ea5c5ca7704c7b38f3b06fffd7ab906020016110c9565b61135f33611ea0565b6040518060400160405280600681526020016550545f37323360d01b8152509061139c5760405162461bcd60e51b815260040161081e9190612520565b50610d7f612024565b60008051602061296b833981519152546001600160a01b031690565b6113c9611df4565b610e478282612061565b6113db611df4565b60408051808201909152600681526550545f37313560d01b60208201526001600160a01b03821661141f5760405162461bcd60e51b815260040161081e9190612520565b5060405163095ea7b360e01b81526001600160a01b037f00000000000000000000000016d104009964e694761c0bf09d7be49b7e3c26fd811660048301526000602483015282169063095ea7b3906044016020604051808303816000875af115801561148f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b3919061283a565b507f00000000000000000000000016d104009964e694761c0bf09d7be49b7e3c26fd6001600160a01b0316816001600160a01b03167f8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b60405160405180910390a350565b61151f611df4565b60408051808201909152600681526550545f37313560d01b60208201526001600160a01b0382166115635760405162461bcd60e51b815260040161081e9190612520565b5060405163095ea7b360e01b81526001600160a01b037f00000000000000000000000016d104009964e694761c0bf09d7be49b7e3c26fd81166004830152600019602483015282169063095ea7b3906044016020604051808303816000875af11580156115d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f8919061283a565b506040516001600160a01b0382169033907ff3b72c0d64f9479054ffaeb168e65382ff1b4060c9d8005e7724492477234dde90600090a350565b61163a611df4565b610e47828261211c565b61012d5460408051808201909152600681526550545f37313960d01b6020820152906001600160a01b0316331461168e5760405162461bcd60e51b815260040161081e9190612520565b5061012d80546001600160a01b0319169055610d7f33611ef4565b604080518082019091526006815265282a2f9b991960d11b6020820152336001600160a01b037f00000000000000000000000016d104009964e694761c0bf09d7be49b7e3c26fd161461170f5760405162461bcd60e51b815260040161081e9190612520565b508060200151600014156040518060400160405280600681526020016550545f37313760d01b815250906117565760405162461bcd60e51b815260040161081e9190612520565b506000611761611b66565b905060006117808360200151670de0b6b3a7640000610b5d919061278b565b83516001600160a01b0316600090815261013160205260408120805492935083929091906117af908490612778565b925050819055508061013460008282546117c99190612778565b90915550508251602080850151604080519182529181018590529081018390526001600160a01b03909116907f354691a432effe5bf8391cd4794cd6b1a99f150658ea7bb1eac06ec456537e9d9060600160405180910390a2505050565b604080518082019091526006815265282a2f9b991960d11b6020820152600090336001600160a01b037f00000000000000000000000016d104009964e694761c0bf09d7be49b7e3c26fd16146118905760405162461bcd60e51b815260040161081e9190612520565b5060008260200151116040518060400160405280600681526020016550545f37313760d01b815250906118d65760405162461bcd60e51b815260040161081e9190612520565b50815160006118e3611b66565b905060006118f18383611fd0565b90508460200151811015604051806040016040528060068152602001650a0a8be6e60760d31b815250906119385760405162461bcd60e51b815260040161081e9190612520565b50600061195c8660200151670de0b6b3a7640000611956919061278b565b84611c5a565b9050806101316000866001600160a01b03166001600160a01b031681526020019081526020016000205410156040518060400160405280600681526020016550545f37303560d01b815250906119c55760405162461bcd60e51b815260040161081e9190612520565b506001600160a01b03841660009081526101316020526040812080548392906119ef908490612765565b92505081905550806101346000828254611a099190612765565b90915550611a219050611a1b826121d7565b84611c44565b60208701519095506001600160a01b038516907f8a0c915efe7fb016672bd9345663d34dcd2d3c96d0f89b4f9d1677201997a5139085611a618983612765565b6040805193845260208401929092529082015260600160405180910390a250505050919050565b611a90611df4565b60408051808201909152600681526550545f37313560d01b60208201526001600160a01b038216611ad45760405162461bcd60e51b815260040161081e9190612520565b5061012d80546001600160a01b0319166001600160a01b0383169081179091556040517f3ec7bb1d452f3c36260fa8ef678a597fd97574d8ec42f6dc98ffce3dbc91228f90600090a250565b60335460ff1615610d7f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161081e565b61013454600090808203611b8357670de0b6b3a764000091505090565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000001e4746dc744503b53b4a082cb3607b169a2890906001600160a01b0316906370a0823190602401602060405180830381865afa158015611bea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0e919061285c565b905080600003611c2857670de0b6b3a76400009250505090565b611c3d610b5d82670de0b6b3a764000061278b565b9250505090565b6000611c53610c94838561278b565b9392505050565b600081611c68600282612875565b611c729085612778565b611c539190612875565b610d6c611df4565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611cbc57611cb7836121fe565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611d16575060408051601f3d908101601f19168201909252611d139181019061285c565b60015b611d795760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840161081e565b60008051602061296b8339815191528114611de85760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840161081e565b50611cb783838361229a565b60fb546001600160a01b03163314610d7f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161081e565b611e566122c5565b6033805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080611eab61230e565b6001600160a01b0390931660009081526020939093525050604090205460011490565b6001600160a01b03811660009081526101316020526040812054610d8c9061085a611b66565b60fb80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16611f6d5760405162461bcd60e51b815260040161081e90612897565b6033805460ff19169055565b600054610100900460ff16611fa05760405162461bcd60e51b815260040161081e90612897565b610d7f33611ef4565b600054610100900460ff16610d7f5760405162461bcd60e51b815260040161081e90612897565b6001600160a01b03821660009081526101336020908152604080832060010154610132835281842054610131909352908320549091906120109085611c44565b61201a9190612765565b611c539190612765565b61202c611b20565b6033805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e833390565b80600081900361207057505050565b600061207a61230e565b905060005b828110156120d557600082600087878581811061209e5761209e6128e2565b90506020020160208101906120b391906124e1565b6001600160a01b0316815260208101919091526040016000205560010161207f565b5083836040516120e69291906128f8565b604051908190038120907fe36d877f5755caee7e117ab1005d1acd030211e8a7ad495316fcaf980d0d054c90600090a250505050565b80600081900361212b57505050565b600061213561230e565b905060005b82811015612190576001826000878785818110612159576121596128e2565b905060200201602081019061216e91906124e1565b6001600160a01b0316815260208101919091526040016000205560010161213a565b5083836040516121a19291906128f8565b604051908190038120907f7802196382882a6ea8cc8c8a1d5f53efe52da8a8d8a0e6f6ce86662996f181df90600090a250505050565b6000610d8c8261013554670de0b6b3a76400006121f49190612765565b610c94919061278b565b6001600160a01b0381163b61226b5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161081e565b60008051602061296b83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6122a38361231b565b6000825111806122b05750805b15611cb7576122bf838361235b565b50505050565b60335460ff16610d7f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161081e565b600080610d8c6003612380565b612324816121fe565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060611c53838360405180606001604052806027815260200161298b602791396123a2565b6000620f424082600481111561239857612398612938565b610d8c9190612778565b6060600080856001600160a01b0316856040516123bf919061294e565b600060405180830381855af49150503d80600081146123fa576040519150601f19603f3d011682016040523d82523d6000602084013e6123ff565b606091505b50915091506124108683838761241a565b9695505050505050565b60608315612489578251600003612482576001600160a01b0385163b6124825760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161081e565b5081612493565b612493838361249b565b949350505050565b8151156124ab5781518083602001fd5b8060405162461bcd60e51b815260040161081e9190612520565b80356001600160a01b03811681146124dc57600080fd5b919050565b6000602082840312156124f357600080fd5b611c53826124c5565b60005b838110156125175781810151838201526020016124ff565b50506000910152565b602081526000825180602084015261253f8160408501602087016124fc565b601f01601f19169190910160400192915050565b6000806040838503121561256657600080fd5b61256f836124c5565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156125bc576125bc61257d565b604052919050565b600080604083850312156125d757600080fd5b6125e0836124c5565b915060208084013567ffffffffffffffff808211156125fe57600080fd5b818601915086601f83011261261257600080fd5b8135818111156126245761262461257d565b612636601f8201601f19168501612593565b9150808252878482850101111561264c57600080fd5b80848401858401376000848284010152508093505050509250929050565b60006020828403121561267c57600080fd5b5035919050565b6000806020838503121561269657600080fd5b823567ffffffffffffffff808211156126ae57600080fd5b818501915085601f8301126126c257600080fd5b8135818111156126d157600080fd5b8660208260051b85010111156126e657600080fd5b60209290920196919550909350505050565b60006040828403121561270a57600080fd5b6040516040810181811067ffffffffffffffff8211171561272d5761272d61257d565b604052612739836124c5565b8152602083013560208201528091505092915050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610d8c57610d8c61274f565b80820180821115610d8c57610d8c61274f565b8082028115828204841417610d8c57610d8c61274f565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60006020828403121561284c57600080fd5b81518015158114611c5357600080fd5b60006020828403121561286e57600080fd5b5051919050565b60008261289257634e487b7160e01b600052601260045260246000fd5b500490565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60008184825b8581101561292d576001600160a01b03612917836124c5565b16835260209283019291909101906001016128fe565b509095945050505050565b634e487b7160e01b600052602160045260246000fd5b600082516129608184602087016124fc565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220301b54d45842e49086b3aae88e1c6f6e89fe47466535573adfdaed69441b10da64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000016d104009964e694761c0bf09d7be49b7e3c26fd0000000000000000000000001e4746dc744503b53b4a082cb3607b169a289090
-----Decoded View---------------
Arg [0] : routerAddress (address): 0x16d104009964e694761C0bf09d7Be49B7E3C26fd
Arg [1] : governanceTokenAddress (address): 0x1e4746dC744503b53b4A082cB3607B169a289090
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000016d104009964e694761c0bf09d7be49b7e3c26fd
Arg [1] : 0000000000000000000000001e4746dc744503b53b4a082cb3607b169a289090
Deployed Bytecode Sourcemap
117003:6851:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;118041:188;;;;;;;;;;-1:-1:-1;118041:188:0;;;;;:::i;:::-;-1:-1:-1;;;;;118178:43:0;118151:7;118178:43;;;:34;:43;;;;;;;118041:188;;;;529:25:1;;;517:2;502:18;118041:188:0;;;;;;;;117264:101;;;;;;;;;;-1:-1:-1;117338:19:0;;;;;;;;;;;;-1:-1:-1;;;117338:19:0;;;;117264:101;;;;;;;:::i;118554:750::-;;;;;;;;;;-1:-1:-1;118554:750:0;;;;;:::i;:::-;;:::i;:::-;;118237:133;;;;;;;;;;-1:-1:-1;118336:26:0;;118237:133;;106192:94;;;;;;;;;;-1:-1:-1;106273:5:0;106192:94;;119312:174;;;;;;;;;;-1:-1:-1;119312:174:0;;;;;:::i;:::-;;:::i;119494:961::-;;;;;;;;;;-1:-1:-1;119494:961:0;;;;;:::i;:::-;;:::i;117732:171::-;;;;;;;;;;;;;:::i;106294:110::-;;;;;;;;;;-1:-1:-1;106380:16:0;;106294:110;;117480:87;;;;;;;;;;-1:-1:-1;117480:87:0;;117557:2;1622:36:1;;1610:2;1595:18;117480:87:0;1480:184:1;104156:38:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1833:32:1;;;1815:51;;1803:2;1788:18;104156:38:0;1669:203:1;44564:198:0;;;;;;;;;;-1:-1:-1;44564:198:0;;;;;:::i;:::-;;:::i;107135:76::-;;;;;;;;;;;;;:::i;106552:113::-;;;;;;;;;;-1:-1:-1;106641:16:0;106552:113;;108254:136;;;;;;;;;;-1:-1:-1;108254:136:0;;;;;:::i;:::-;;:::i;:::-;;;2042:14:1;;2035:22;2017:41;;2005:2;1990:18;108254:136:0;1877:187:1;117575:149:0;;;;;;;;;;-1:-1:-1;117650:66:0;117575:149;;45093:223;;;;;;:::i;:::-;;:::i;44170:133::-;;;;;;;;;;;;;:::i;57382:86::-;;;;;;;;;;-1:-1:-1;57453:7:0;;;;57382:86;;106412:132;;;;;;;;;;;;;:::i;106673:366::-;;;;;;;;;;-1:-1:-1;106673:366:0;;;;;:::i;:::-;;:::i;123405:446::-;;;;;;;;;;-1:-1:-1;123405:446:0;;;;;:::i;:::-;;:::i;117911:122::-;;;;;;;;;;-1:-1:-1;117911:122:0;;;;;:::i;:::-;;:::i;55333:151::-;;;;;;;;;;;;;:::i;105910:274::-;;;;;;;;;;;;;:::i;122937:460::-;;;;;;;;;;-1:-1:-1;122937:460:0;;;;;:::i;:::-;;:::i;107047:80::-;;;;;;;;;;;;;:::i;52718:87::-;;;;;;;;;;-1:-1:-1;52791:6:0;;-1:-1:-1;;;;;52791:6:0;52718:87;;117373:99;;;;;;;;;;-1:-1:-1;117449:15:0;;;;;;;;;;;;-1:-1:-1;;;117449:15:0;;;;117373:99;;118378:168;;;;;;;;;;-1:-1:-1;118378:168:0;;;;;:::i;:::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;118519:19:0;;;;;:10;:19;;;;;;;;;118512:26;;;;;;;;;;;;;;;;;;;;118378:168;;;;;3920:13:1;;3902:32;;3990:4;3978:17;;;3972:24;3950:20;;;3943:54;;;;3875:18;118378:168:0;3690:313:1;107791:161:0;;;;;;;;;;;;;:::i;108104:142::-;;;;;;;;;;-1:-1:-1;108104:142:0;;;;;:::i;:::-;;:::i;107511:272::-;;;;;;;;;;-1:-1:-1;107511:272:0;;;;;:::i;:::-;;:::i;107219:284::-;;;;;;;;;;-1:-1:-1;107219:284:0;;;;;:::i;:::-;;:::i;107960:136::-;;;;;;;;;;-1:-1:-1;107960:136:0;;;;;:::i;:::-;;:::i;55175:150::-;;;;;;;;;;;;;:::i;120463:838::-;;;;;;;;;;-1:-1:-1;120463:838:0;;;;;:::i;:::-;;:::i;121309:1620::-;;;;;;;;;;-1:-1:-1;121309:1620:0;;;;;:::i;:::-;;:::i;54909:258::-;;;;;;;;;;-1:-1:-1;54909:258:0;;;;;:::i;:::-;;:::i;104080:67::-;;;;;;;;;;;;104127:20;104080:67;;118554:750;56987:19;:17;:19::i;:::-;105857:24:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;105857:24:0::1;::::0;::::1;::::0;105828:10:::1;-1:-1:-1::0;;;;;105842:13:0::1;105828:27;;105820:62;;;;-1:-1:-1::0;;;105820:62:0::1;;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1::0;;;;;;118858:43:0;::::2;118699:30;118858:43:::0;;;:34:::2;:43;::::0;;;;;;;;118776:12:::2;:21:::0;;;;;;118732:123:::2;::::0;118812:32:::2;:30;:32::i;:::-;118732:29;:123::i;:::-;:169;;;;:::i;:::-;118699:202;;118962:13;118936:22;:39;;118990:51;;;;;;;;;;;;;-1:-1:-1::0;;;118990:51:0::2;;::::0;118914:138:::2;;;;;-1:-1:-1::0;;;118914:138:0::2;;;;;;;;:::i;:::-;;119087:123;;;;;;;;104127:20;119133:15;:38;;;;:::i;:::-;119087:123:::0;;::::2;::::0;;::::2;::::0;;;-1:-1:-1;;;;;119065:19:0;::::2;-1:-1:-1::0;119065:19:0;;;:10:::2;:19:::0;;;;;:145;;;;;::::2;::::0;::::2;::::0;;::::2;::::0;119226:70:::2;119186:13:::0;119257:38:::2;104127:20;119257:15;:38;:::i;:::-;119226:70;::::0;;5726:25:1;;;5782:2;5767:18;;5760:34;;;;5699:18;119226:70:0::2;;;;;;;118688:616;118554:750:::0;;:::o;119312:174::-;56987:19;:17;:19::i;:::-;105857:24:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;105857:24:0::1;::::0;::::1;::::0;105828:10:::1;-1:-1:-1::0;;;;;105842:13:0::1;105828:27;;105820:62;;;;-1:-1:-1::0;;;105820:62:0::1;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;;119422:19:0;::::2;;::::0;;;:10:::2;:19;::::0;;;;;119415:26;;;::::2;;::::0;;;119457:21;::::2;::::0;::::2;::::0;119422:19;;5726:25:1;;;5782:2;5767:18;;5760:34;5714:2;5699:18;;5552:248;119457:21:0::2;;;;;;;;119312:174:::0;:::o;119494:961::-;119603:22;56987:19;:17;:19::i;:::-;105857:24:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;105857:24:0::1;::::0;::::1;::::0;105828:10:::1;-1:-1:-1::0;;;;;105842:13:0::1;105828:27;;105820:62;;;;-1:-1:-1::0;;;105820:62:0::1;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;;;119695:19:0;::::2;119638:54;119695:19:::0;;;:10:::2;:19;::::0;;;;;;;;119638:76;;;;::::2;::::0;;;;;;;::::2;::::0;;::::2;::::0;;;::::2;::::0;;;119839:27;;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;;;119839:27:0;;::::2;::::0;;;;119638:76;;119839:27;119790:15:::2;:47;;119782:85;;;;-1:-1:-1::0;;;119782:85:0::2;;;;;;;;:::i;:::-;-1:-1:-1::0;119906:34:0::2;::::0;;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;;;119906:34:0::2;::::0;::::2;::::0;119886:18;119878:63:::2;;;;-1:-1:-1::0;;;119878:63:0::2;;;;;;;;:::i;:::-;;119954:20;119977:32;:30;:32::i;:::-;119954:55:::0;-1:-1:-1;120020:27:0::2;120050:59;120073:21;:14:::0;120090:4:::2;120073:21;:::i;:::-;120096:12;120050:22;:59::i;:::-;120020:89;;120169:19;120144:12;:21;120157:7;-1:-1:-1::0;;;;;120144:21:0::2;-1:-1:-1::0;;;;;120144:21:0::2;;;;;;;;;;;;;:44;;120203:38;;;;;;;;;;;;;-1:-1:-1::0;;;120203:38:0::2;;::::0;120122:130:::2;;;;;-1:-1:-1::0;;;120122:130:0::2;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;;120265:21:0;::::2;;::::0;;;:12:::2;:21;::::0;;;;:44;;120290:19;;120265:21;:44:::2;::::0;120290:19;;120265:44:::2;:::i;:::-;;;;;;;;120340:19;120320:16;;:39;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;120379:19:0;::::2;;::::0;;;:10:::2;:19;::::0;;;;;120372:26;;;::::2;;::::0;;;;120416:31;::::2;::::0;::::2;::::0;120432:14;529:25:1;;517:2;502:18;;383:177;120416:31:0::2;;;;;;;;119627:828;;;119494:961:::0;;;:::o;117732:171::-;117787:7;117814:81;117856:32;:30;:32::i;:::-;117837:16;;:51;;;;:::i;:::-;117890:4;117814:22;:81::i;:::-;117807:88;;117732:171;:::o;44564:198::-;-1:-1:-1;;;;;43040:6:0;43023:23;43031:4;43023:23;43015:80;;;;-1:-1:-1;;;43015:80:0;;;;;;;:::i;:::-;43138:6;-1:-1:-1;;;;;43114:30:0;:20;:18;:20::i;:::-;-1:-1:-1;;;;;43114:30:0;;43106:87;;;;-1:-1:-1;;;43106:87:0;;;;;;;:::i;:::-;44646:36:::1;44664:17;44646;:36::i;:::-;44734:12;::::0;;44744:1:::1;44734:12:::0;;;::::1;::::0;::::1;::::0;;;44693:61:::1;::::0;44715:17;;44734:12;44693:21:::1;:61::i;:::-;44564:198:::0;:::o;107135:76::-;52604:13;:11;:13::i;:::-;107193:10:::1;:8;:10::i;:::-;107135:76::o:0;108254:136::-;108320:4;108344:38;108373:8;108344:28;:38::i;:::-;108337:45;108254:136;-1:-1:-1;;108254:136:0:o;45093:223::-;-1:-1:-1;;;;;43040:6:0;43023:23;43031:4;43023:23;43015:80;;;;-1:-1:-1;;;43015:80:0;;;;;;;:::i;:::-;43138:6;-1:-1:-1;;;;;43114:30:0;:20;:18;:20::i;:::-;-1:-1:-1;;;;;43114:30:0;;43106:87;;;;-1:-1:-1;;;43106:87:0;;;;;;;:::i;:::-;45209:36:::1;45227:17;45209;:36::i;:::-;45256:52;45278:17;45297:4;45303;45256:21;:52::i;:::-;45093:223:::0;;:::o;44170:133::-;44248:7;43476:4;-1:-1:-1;;;;;43485:6:0;43468:23;;43460:92;;;;-1:-1:-1;;;43460:92:0;;7275:2:1;43460:92:0;;;7257:21:1;7314:2;7294:18;;;7287:30;7353:34;7333:18;;;7326:62;7424:26;7404:18;;;7397:54;7468:19;;43460:92:0;7073:420:1;43460:92:0;-1:-1:-1;;;;;;;;;;;;44170:133:0;:::o;106412:132::-;106477:7;106504:32;:30;:32::i;106673:366::-;52604:13;:11;:13::i;:::-;106844:46:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;106844:46:0::1;::::0;::::1;::::0;106838:4:::1;106809:33:::0;::::1;;106801:90;;;;-1:-1:-1::0;;;106801:90:0::1;;;;;;;;:::i;:::-;-1:-1:-1::0;106902:26:0::1;:54:::0;;;106972:59:::1;::::0;529:25:1;;;106972:59:0::1;::::0;517:2:1;502:18;106972:59:0::1;383:177:1::0;123405:446:0;56987:19;:17;:19::i;:::-;105857:24:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;105857:24:0::1;::::0;::::1;::::0;105828:10:::1;-1:-1:-1::0;;;;;105842:13:0::1;105828:27;;105820:62;;;;-1:-1:-1::0;;;105820:62:0::1;;;;;;;;:::i;:::-;;123621:13:::2;123574:34;:43;123609:7;-1:-1:-1::0;;;;;123574:43:0::2;-1:-1:-1::0;;;;;123574:43:0::2;;;;;;;;;;;;;:60;;123649:59;;;;;;;;;;;;;-1:-1:-1::0;;;123649:59:0::2;;::::0;123552:167:::2;;;;;-1:-1:-1::0;;;123552:167:0::2;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;;123732:43:0;::::2;;::::0;;;:34:::2;:43;::::0;;;;:60;;123779:13;;123732:43;:60:::2;::::0;123779:13;;123732:60:::2;:::i;:::-;::::0;;;-1:-1:-1;;123808:35:0::2;::::0;529:25:1;;;-1:-1:-1;;;;;123808:35:0;::::2;::::0;::::2;::::0;517:2:1;502:18;123808:35:0::2;;;;;;;;123405:446:::0;;:::o;117911:122::-;117979:7;118006:19;118017:7;118006:10;:19::i;55333:151::-;52604:13;:11;:13::i;:::-;55407:30:::1;55434:1;55407:18;:30::i;:::-;55448:15;:28:::0;;-1:-1:-1;;;;;;55448:28:0::1;::::0;;55333:151::o;105910:274::-;31009:19;31032:13;;;;;;31031:14;;31079:34;;;;-1:-1:-1;31097:12:0;;31112:1;31097:12;;;;:16;31079:34;31078:108;;;-1:-1:-1;31158:4:0;19781:19;:23;;;31119:66;;-1:-1:-1;31168:12:0;;;;;:17;31119:66;31056:204;;;;-1:-1:-1;;;31056:204:0;;7700:2:1;31056:204:0;;;7682:21:1;7739:2;7719:18;;;7712:30;7778:34;7758:18;;;7751:62;-1:-1:-1;;;7829:18:1;;;7822:44;7883:19;;31056:204:0;7498:410:1;31056:204:0;31271:12;:16;;-1:-1:-1;;31271:16:0;31286:1;31271:16;;;31298:67;;;;31333:13;:20;;-1:-1:-1;;31333:20:0;;;;;31298:67;105962:27:::1;:25;:27::i;:::-;106000:26;:24;:26::i;:::-;106037:34;:32;:34::i;:::-;106168:8;106139:26;:37:::0;31387:102;;;;31438:5;31422:21;;-1:-1:-1;;31422:21:0;;;31463:14;;-1:-1:-1;1622:36:1;;31463:14:0;;1610:2:1;1595:18;31463:14:0;1480:184:1;122937:460:0;56987:19;:17;:19::i;:::-;105857:24:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;105857:24:0::1;::::0;::::1;::::0;105828:10:::1;-1:-1:-1::0;;;;;105842:13:0::1;105828:27;;105820:62;;;;-1:-1:-1::0;;;105820:62:0::1;;;;;;;;:::i;:::-;;123177:13:::2;123104:69;123131:7;123140:32;:30;:32::i;:::-;123104:26;:69::i;:::-;:86;;123205:51;;;;;;;;;;;;;-1:-1:-1::0;;;123205:51:0::2;;::::0;123082:185:::2;;;;;-1:-1:-1::0;;;123082:185:0::2;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;;123280:43:0;::::2;;::::0;;;:34:::2;:43;::::0;;;;:60;;123327:13;;123280:43;:60:::2;::::0;123327:13;;123280:60:::2;:::i;:::-;::::0;;;-1:-1:-1;;123356:33:0::2;::::0;529:25:1;;;-1:-1:-1;;;;;123356:33:0;::::2;::::0;::::2;::::0;517:2:1;502:18;123356:33:0::2;383:177:1::0;107047:80:0;105690:40;105719:10;105690:28;:40::i;:::-;105732:26;;;;;;;;;;;;;-1:-1:-1;;;105732:26:0;;;105682:77;;;;;-1:-1:-1;;;105682:77:0;;;;;;;;:::i;:::-;;107111:8:::1;:6;:8::i;107791:161::-:0;-1:-1:-1;;;;;;;;;;;107879:65:0;-1:-1:-1;;;;;107879:65:0;;107791:161::o;108104:142::-;52604:13;:11;:13::i;:::-;108194:44:::1;108228:9;;108194:33;:44::i;107511:272::-:0;52604:13;:11;:13::i;:::-;107638:20:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;107638:20:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;107612:24:0;::::1;107604:55;;;;-1:-1:-1::0;;;107604:55:0::1;;;;;;;;:::i;:::-;-1:-1:-1::0;107672:44:0::1;::::0;-1:-1:-1;;;107672:44:0;;-1:-1:-1;;;;;107699:13:0::1;8312:32:1::0;;107672:44:0::1;::::0;::::1;8294:51:1::0;-1:-1:-1;8361:18:1;;;8354:34;107672:26:0;::::1;::::0;::::1;::::0;8267:18:1;;107672:44:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;107761:13;-1:-1:-1::0;;;;;107732:43:0::1;107749:10;-1:-1:-1::0;;;;;107732:43:0::1;;;;;;;;;;;107511:272:::0;:::o;107219:284::-;52604:13;:11;:13::i;:::-;107345:20:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;107345:20:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;107319:24:0;::::1;107311:55;;;;-1:-1:-1::0;;;107311:55:0::1;;;;;;;;:::i;:::-;-1:-1:-1::0;107379:60:0::1;::::0;-1:-1:-1;;;107379:60:0;;-1:-1:-1;;;;;107406:13:0::1;8312:32:1::0;;107379:60:0::1;::::0;::::1;8294:51:1::0;-1:-1:-1;;8361:18:1;;;8354:34;107379:26:0;::::1;::::0;::::1;::::0;8267:18:1;;107379:60:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;107455:40:0::1;::::0;-1:-1:-1;;;;;107455:40:0;::::1;::::0;107472:10:::1;::::0;107455:40:::1;::::0;;;::::1;107219:284:::0;:::o;107960:136::-;52604:13;:11;:13::i;:::-;108047:41:::1;108078:9;;108047:30;:41::i;55175:150::-:0;54816:15;;54847:33;;;;;;;;;;;;-1:-1:-1;;;54847:33:0;;;;;-1:-1:-1;;;;;54816:15:0;54835:10;54816:29;54808:73;;;;-1:-1:-1;;;54808:73:0;;;;;;;;:::i;:::-;-1:-1:-1;55248:15:0::1;:28:::0;;-1:-1:-1;;;;;;55248:28:0::1;::::0;;55287:30:::1;55306:10;55287:18;:30::i;120463:838::-:0;105857:24;;;;;;;;;;;;-1:-1:-1;;;105857:24:0;;;;105828:10;-1:-1:-1;;;;;105842:13:0;105828:27;;105820:62;;;;-1:-1:-1;;;105820:62:0;;;;;;;;:::i;:::-;;120636:21:::1;:43;;;120683:1;120636:48;;120699:34;;;;;;;;;;;;;-1:-1:-1::0;;;120699:34:0::1;;::::0;120614:130:::1;;;;;-1:-1:-1::0;;;120614:130:0::1;;;;;;;;:::i;:::-;;120757:20;120780:32;:30;:32::i;:::-;120757:55;;120825:18;120846:125;120883:21;:43;;;120929:4;120883:50;;;;:::i;120846:125::-;120997:33:::0;;-1:-1:-1;;;;;120984:47:0::1;;::::0;;;:12:::1;:47;::::0;;;;:61;;120825:146;;-1:-1:-1;120825:146:0;;120984:47;;;:61:::1;::::0;120825:146;;120984:61:::1;:::i;:::-;;;;;;;;121076:10;121056:16;;:30;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;121139:33:0;;121187:43:::1;::::0;;::::1;::::0;121104:189:::1;::::0;;9162:25:1;;;9203:18;;;9196:34;;;9246:18;;;9239:34;;;-1:-1:-1;;;;;121104:189:0;;::::1;::::0;::::1;::::0;9150:2:1;9135:18;121104:189:0::1;;;;;;;120603:698;;120463:838:::0;:::o;121309:1620::-;105857:24;;;;;;;;;;;;-1:-1:-1;;;105857:24:0;;;;121468:39;;105828:10;-1:-1:-1;;;;;105842:13:0;105828:27;;105820:62;;;;-1:-1:-1;;;105820:62:0;;;;;;;;:::i;:::-;;121588:1:::1;121542:21;:43;;;:47;121604:34;;;;;;;;;;;;;-1:-1:-1::0;;;121604:34:0::1;;::::0;121520:129:::1;;;;;-1:-1:-1::0;;;121520:129:0::1;;;;;;;;:::i;:::-;-1:-1:-1::0;121680:33:0;;121662:15:::1;121749:32;:30;:32::i;:::-;121726:55;;121792:30;121825:49;121852:7;121861:12;121825:26;:49::i;:::-;121792:82;;121935:21;:43;;;121909:22;:69;;121993:51;;;;;;;;;;;;;-1:-1:-1::0;;;121993:51:0::1;;::::0;121887:168:::1;;;;;-1:-1:-1::0;;;121887:168:0::1;;;;;;;;:::i;:::-;;122068:27;122098:125;122135:21;:43;;;122181:4;122135:50;;;;:::i;:::-;122200:12;122098:22;:125::i;:::-;122068:155;;122283:19;122258:12;:21;122271:7;-1:-1:-1::0;;;;;122258:21:0::1;-1:-1:-1::0;;;;;122258:21:0::1;;;;;;;;;;;;;:44;;122317:38;;;;;;;;;;;;;-1:-1:-1::0;;;122317:38:0::1;;::::0;122236:130:::1;;;;;-1:-1:-1::0;;;122236:130:0::1;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;;122379:21:0;::::1;;::::0;;;:12:::1;:21;::::0;;;;:44;;122404:19;;122379:21;:44:::1;::::0;122404:19;;122379:44:::1;:::i;:::-;;;;;;;;122454:19;122434:16;;:39;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;122520:144:0::1;::::0;-1:-1:-1;122564:62:0::1;122606:19:::0;122564:41:::1;:62::i;:::-;122641:12;122520:29;:144::i;:::-;122748:43;::::0;::::1;::::0;122486:178;;-1:-1:-1;;;;;;122682:239:0;::::1;::::0;::::1;::::0;122806:12;122833:77:::1;122486:178:::0;122748:43;122833:77:::1;:::i;:::-;122682:239;::::0;;9162:25:1;;;9218:2;9203:18;;9196:34;;;;9246:18;;;9239:34;9150:2;9135:18;122682:239:0::1;;;;;;;121509:1420;;;;121309:1620:::0;;;:::o;54909:258::-;52604:13;:11;:13::i;:::-;55035:20:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;55035:20:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;55005:28:0;::::1;54997:59;;;;-1:-1:-1::0;;;54997:59:0::1;;;;;;;;:::i;:::-;-1:-1:-1::0;55067:15:0::1;:32:::0;;-1:-1:-1;;;;;;55067:32:0::1;-1:-1:-1::0;;;;;55067:32:0;::::1;::::0;;::::1;::::0;;;55115:44:::1;::::0;::::1;::::0;-1:-1:-1;;55115:44:0::1;54909:258:::0;:::o;57541:108::-;57453:7;;;;57611:9;57603:38;;;;-1:-1:-1;;;57603:38:0;;9486:2:1;57603:38:0;;;9468:21:1;9525:2;9505:18;;;9498:30;-1:-1:-1;;;9544:18:1;;;9537:46;9600:18;;57603:38:0;9284:340:1;108398:520:0;108509:16;;108463:7;;108542:20;;;108538:64;;108586:4;108579:11;;;108398:520;:::o;108538:64::-;108649:84;;-1:-1:-1;;;108649:84:0;;108717:4;108649:84;;;1815:51:1;108614:32:0;;108667:16;-1:-1:-1;;;;;108649:45:0;;;;1788:18:1;;108649:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;108614:119;;108750:24;108778:1;108750:29;108746:73;;108803:4;108796:11;;;;108398:520;:::o;108746:73::-;108838:72;108861:31;:24;108888:4;108861:31;:::i;108838:72::-;108831:79;;;;108398:520;:::o;109157:219::-;109286:7;109313:55;109336:25;109349:12;109336:10;:25;:::i;109313:55::-;109306:62;109157:219;-1:-1:-1;;;109157:219:0:o;3854:114::-;3917:9;3959:1;3949:5;3953:1;3959;3949:5;:::i;:::-;3944:11;;:1;:11;:::i;:::-;3943:17;;;;:::i;109978:66::-;52604:13;:11;:13::i;37134:958::-;35234:66;37554:59;;;37550:535;;;37630:37;37649:17;37630:18;:37::i;:::-;37134:958;;;:::o;37550:535::-;37733:17;-1:-1:-1;;;;;37704:61:0;;:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37704:63:0;;;;;;;;-1:-1:-1;;37704:63:0;;;;;;;;;;;;:::i;:::-;;;37700:306;;37934:56;;-1:-1:-1;;;37934:56:0;;10431:2:1;37934:56:0;;;10413:21:1;10470:2;10450:18;;;10443:30;10509:34;10489:18;;;10482:62;-1:-1:-1;;;10560:18:1;;;10553:44;10614:19;;37934:56:0;10229:410:1;37700:306:0;-1:-1:-1;;;;;;;;;;;37818:28:0;;37810:82;;;;-1:-1:-1;;;37810:82:0;;10846:2:1;37810:82:0;;;10828:21:1;10885:2;10865:18;;;10858:30;10924:34;10904:18;;;10897:62;-1:-1:-1;;;10975:18:1;;;10968:39;11024:19;;37810:82:0;10644:405:1;37810:82:0;37768:140;38020:53;38038:17;38057:4;38063:9;38020:17;:53::i;52883:132::-;52791:6;;-1:-1:-1;;;;;52791:6:0;50836:10;52947:23;52939:68;;;;-1:-1:-1;;;52939:68:0;;11256:2:1;52939:68:0;;;11238:21:1;;;11275:18;;;11268:30;11334:34;11314:18;;;11307:62;11386:18;;52939:68:0;11054:356:1;58237:120:0;57246:16;:14;:16::i;:::-;58296:7:::1;:15:::0;;-1:-1:-1;;58296:15:0::1;::::0;;58327:22:::1;50836:10:::0;58336:12:::1;58327:22;::::0;-1:-1:-1;;;;;1833:32:1;;;1815:51;;1803:2;1788:18;58327:22:0::1;;;;;;;58237:120::o:0;3272:229::-;3339:4;3356:50;3409:36;:34;:36::i;:::-;-1:-1:-1;;;;;3463:25:0;;;;;;;;;;;;-1:-1:-1;;3463:25:0;;;;3492:1;3463:30;;3272:229::o;109737:194::-;-1:-1:-1;;;;;109867:21:0;;109797:7;109867:21;;;:12;:21;;;;;;109837:86;;109890:32;:30;:32::i;53978:191::-;54071:6;;;-1:-1:-1;;;;;54088:17:0;;;-1:-1:-1;;;;;;54088:17:0;;;;;;;54121:40;;54071:6;;;54088:17;54071:6;;54121:40;;54052:16;;54121:40;54041:128;53978:191;:::o;56659:97::-;33152:13;;;;;;;33144:69;;;;-1:-1:-1;;;33144:69:0;;;;;;;:::i;:::-;56733:7:::1;:15:::0;;-1:-1:-1;;56733:15:0::1;::::0;;56659:97::o;52366:113::-;33152:13;;;;;;;33144:69;;;;-1:-1:-1;;;33144:69:0;;;;;;;:::i;:::-;52439:32:::1;50836:10:::0;52439:18:::1;:32::i;42244:78::-:0;33152:13;;;;;;;33144:69;;;;-1:-1:-1;;;33144:69:0;;;;;;;:::i;109384:345::-;-1:-1:-1;;;;;109688:19:0;;109507:7;109688:19;;;:10;:19;;;;;;;;:33;;;109629:34;:43;;;;;;109577:12;:21;;;;;;;109688:33;;109629:43;109547:66;;109600:12;109547:29;:66::i;:::-;:125;;;;:::i;:::-;:174;;;;:::i;57978:118::-;56987:19;:17;:19::i;:::-;58038:7:::1;:14:::0;;-1:-1:-1;;58038:14:0::1;58048:4;58038:14;::::0;;58068:20:::1;58075:12;50836:10:::0;;50756:98;2772:492;2869:9;2852:14;2900:11;;;2896:50;;2928:7;2772:492;;:::o;2896:50::-;2956;3009:36;:34;:36::i;:::-;2956:89;;3063:9;3058:151;3078:6;3074:1;:10;3058:151;;;3134:1;3103:14;:28;3118:9;;3128:1;3118:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;3103:28:0;;;;;;;;;;;;-1:-1:-1;3103:28:0;:32;3179:3;;3058:151;;;;3246:9;;3224:32;;;;;;;:::i;:::-;;;;;;;;;;;;;;;2841:423;;2772:492;;:::o;2279:485::-;2373:9;2356:14;2404:11;;;2400:50;;2432:7;2279:485;;:::o;2400:50::-;2460;2513:36;:34;:36::i;:::-;2460:89;;2565:9;2560:151;2580:6;2576:1;:10;2560:151;;;2636:1;2605:14;:28;2620:9;;2630:1;2620:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;2605:28:0;;;;;;;;;;;;-1:-1:-1;2605:28:0;:32;2681:3;;2560:151;;;;2746:9;;2726:30;;;;;;;:::i;:::-;;;;;;;;;;;;;;;2345:419;;2279:485;;:::o;108926:223::-;109036:7;109063:78;109124:10;109094:26;;109087:4;:33;;;;:::i;:::-;109086:48;;;;:::i;35981:284::-;-1:-1:-1;;;;;19781:19:0;;;36055:106;;;;-1:-1:-1;;;36055:106:0;;12717:2:1;36055:106:0;;;12699:21:1;12756:2;12736:18;;;12729:30;12795:34;12775:18;;;12768:62;-1:-1:-1;;;12846:18:1;;;12839:43;12899:19;;36055:106:0;12515:409:1;36055:106:0;-1:-1:-1;;;;;;;;;;;36172:85:0;;-1:-1:-1;;;;;;36172:85:0;-1:-1:-1;;;;;36172:85:0;;;;;;;;;;35981:284::o;36674:281::-;36783:29;36794:17;36783:10;:29::i;:::-;36841:1;36827:4;:11;:15;:28;;;;36846:9;36827:28;36823:125;;;36872:64;36912:17;36931:4;36872:39;:64::i;:::-;;36674:281;;;:::o;57726:108::-;57453:7;;;;57785:41;;;;-1:-1:-1;;;57785:41:0;;13131:2:1;57785:41:0;;;13113:21:1;13170:2;13150:18;;;13143:30;-1:-1:-1;;;13189:18:1;;;13182:50;13249:18;;57785:41:0;12929:344:1;1475:271:0;1560:41;1619:12;1634:41;1650:24;1634:15;:41::i;36378:155::-;36445:37;36464:17;36445:18;:37::i;:::-;36498:27;;-1:-1:-1;;;;;36498:27:0;;;;;;;;36378:155;:::o;24878:200::-;24961:12;24993:77;25014:6;25022:4;24993:77;;;;;;;;;;;;;;;;;:20;:77::i;1997:146::-;2065:12;268:9;2105;2097:18;;;;;;;;:::i;:::-;:38;;;;:::i;25272:332::-;25417:12;25443;25457:23;25484:6;-1:-1:-1;;;;;25484:19:0;25504:4;25484:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25442:67;;;;25527:69;25554:6;25562:7;25571:10;25583:12;25527:26;:69::i;:::-;25520:76;25272:332;-1:-1:-1;;;;;;25272:332:0:o;25900:644::-;26085:12;26114:7;26110:427;;;26142:10;:17;26163:1;26142:22;26138:290;;-1:-1:-1;;;;;19781:19:0;;;26352:60;;;;-1:-1:-1;;;26352:60:0;;13904:2:1;26352:60:0;;;13886:21:1;13943:2;13923:18;;;13916:30;13982:31;13962:18;;;13955:59;14031:18;;26352:60:0;13702:353:1;26352:60:0;-1:-1:-1;26449:10:0;26442:17;;26110:427;26492:33;26500:10;26512:12;26492:7;:33::i;:::-;25900:644;;;;;;:::o;27086:552::-;27247:17;;:21;27243:388;;27479:10;27473:17;27536:15;27523:10;27519:2;27515:19;27508:44;27243:388;27606:12;27599:20;;-1:-1:-1;;;27599:20:0;;;;;;;;:::i;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;565:250::-;650:1;660:113;674:6;671:1;668:13;660:113;;;750:11;;;744:18;731:11;;;724:39;696:2;689:10;660:113;;;-1:-1:-1;;807:1:1;789:16;;782:27;565:250::o;820:396::-;969:2;958:9;951:21;932:4;1001:6;995:13;1044:6;1039:2;1028:9;1024:18;1017:34;1060:79;1132:6;1127:2;1116:9;1112:18;1107:2;1099:6;1095:15;1060:79;:::i;:::-;1200:2;1179:15;-1:-1:-1;;1175:29:1;1160:45;;;;1207:2;1156:54;;820:396;-1:-1:-1;;820:396:1:o;1221:254::-;1289:6;1297;1350:2;1338:9;1329:7;1325:23;1321:32;1318:52;;;1366:1;1363;1356:12;1318:52;1389:29;1408:9;1389:29;:::i;:::-;1379:39;1465:2;1450:18;;;;1437:32;;-1:-1:-1;;;1221:254:1:o;2251:127::-;2312:10;2307:3;2303:20;2300:1;2293:31;2343:4;2340:1;2333:15;2367:4;2364:1;2357:15;2383:275;2454:2;2448:9;2519:2;2500:13;;-1:-1:-1;;2496:27:1;2484:40;;2554:18;2539:34;;2575:22;;;2536:62;2533:88;;;2601:18;;:::i;:::-;2637:2;2630:22;2383:275;;-1:-1:-1;2383:275:1:o;2663:837::-;2740:6;2748;2801:2;2789:9;2780:7;2776:23;2772:32;2769:52;;;2817:1;2814;2807:12;2769:52;2840:29;2859:9;2840:29;:::i;:::-;2830:39;;2888:2;2941;2930:9;2926:18;2913:32;2964:18;3005:2;2997:6;2994:14;2991:34;;;3021:1;3018;3011:12;2991:34;3059:6;3048:9;3044:22;3034:32;;3104:7;3097:4;3093:2;3089:13;3085:27;3075:55;;3126:1;3123;3116:12;3075:55;3162:2;3149:16;3184:2;3180;3177:10;3174:36;;;3190:18;;:::i;:::-;3232:53;3275:2;3256:13;;-1:-1:-1;;3252:27:1;3248:36;;3232:53;:::i;:::-;3219:66;;3308:2;3301:5;3294:17;3348:7;3343:2;3338;3334;3330:11;3326:20;3323:33;3320:53;;;3369:1;3366;3359:12;3320:53;3424:2;3419;3415;3411:11;3406:2;3399:5;3395:14;3382:45;3468:1;3463:2;3458;3451:5;3447:14;3443:23;3436:34;;3489:5;3479:15;;;;;2663:837;;;;;:::o;3505:180::-;3564:6;3617:2;3605:9;3596:7;3592:23;3588:32;3585:52;;;3633:1;3630;3623:12;3585:52;-1:-1:-1;3656:23:1;;3505:180;-1:-1:-1;3505:180:1:o;4008:615::-;4094:6;4102;4155:2;4143:9;4134:7;4130:23;4126:32;4123:52;;;4171:1;4168;4161:12;4123:52;4211:9;4198:23;4240:18;4281:2;4273:6;4270:14;4267:34;;;4297:1;4294;4287:12;4267:34;4335:6;4324:9;4320:22;4310:32;;4380:7;4373:4;4369:2;4365:13;4361:27;4351:55;;4402:1;4399;4392:12;4351:55;4442:2;4429:16;4468:2;4460:6;4457:14;4454:34;;;4484:1;4481;4474:12;4454:34;4537:7;4532:2;4522:6;4519:1;4515:14;4511:2;4507:23;4503:32;4500:45;4497:65;;;4558:1;4555;4548:12;4497:65;4589:2;4581:11;;;;;4611:6;;-1:-1:-1;4008:615:1;;-1:-1:-1;;;;4008:615:1:o;4628:524::-;4726:6;4779:2;4767:9;4758:7;4754:23;4750:32;4747:52;;;4795:1;4792;4785:12;4747:52;4828:2;4822:9;4870:2;4862:6;4858:15;4939:6;4927:10;4924:22;4903:18;4891:10;4888:34;4885:62;4882:88;;;4950:18;;:::i;:::-;4986:2;4979:22;5025:29;5044:9;5025:29;:::i;:::-;5017:6;5010:45;5116:2;5105:9;5101:18;5088:32;5083:2;5075:6;5071:15;5064:57;5140:6;5130:16;;;4628:524;;;;:::o;5157:127::-;5218:10;5213:3;5209:20;5206:1;5199:31;5249:4;5246:1;5239:15;5273:4;5270:1;5263:15;5289:128;5356:9;;;5377:11;;;5374:37;;;5391:18;;:::i;5422:125::-;5487:9;;;5508:10;;;5505:36;;;5521:18;;:::i;6074:168::-;6147:9;;;6178;;6195:15;;;6189:22;;6175:37;6165:71;;6216:18;;:::i;6247:408::-;6449:2;6431:21;;;6488:2;6468:18;;;6461:30;6527:34;6522:2;6507:18;;6500:62;-1:-1:-1;;;6593:2:1;6578:18;;6571:42;6645:3;6630:19;;6247:408::o;6660:::-;6862:2;6844:21;;;6901:2;6881:18;;;6874:30;6940:34;6935:2;6920:18;;6913:62;-1:-1:-1;;;7006:2:1;6991:18;;6984:42;7058:3;7043:19;;6660:408::o;8399:277::-;8466:6;8519:2;8507:9;8498:7;8494:23;8490:32;8487:52;;;8535:1;8532;8525:12;8487:52;8567:9;8561:16;8620:5;8613:13;8606:21;8599:5;8596:32;8586:60;;8642:1;8639;8632:12;9629:184;9699:6;9752:2;9740:9;9731:7;9727:23;9723:32;9720:52;;;9768:1;9765;9758:12;9720:52;-1:-1:-1;9791:16:1;;9629:184;-1:-1:-1;9629:184:1:o;9818:217::-;9858:1;9884;9874:132;;9928:10;9923:3;9919:20;9916:1;9909:31;9963:4;9960:1;9953:15;9991:4;9988:1;9981:15;9874:132;-1:-1:-1;10020:9:1;;9818:217::o;11415:407::-;11617:2;11599:21;;;11656:2;11636:18;;;11629:30;11695:34;11690:2;11675:18;;11668:62;-1:-1:-1;;;11761:2:1;11746:18;;11739:41;11812:3;11797:19;;11415:407::o;11827:127::-;11888:10;11883:3;11879:20;11876:1;11869:31;11919:4;11916:1;11909:15;11943:4;11940:1;11933:15;11959:551;12130:3;12161;12208:6;12130:3;12242:241;12256:6;12253:1;12250:13;12242:241;;;-1:-1:-1;;;;;12323:26:1;12342:6;12323:26;:::i;:::-;12319:52;12305:67;;12395:4;12421:14;;;;12458:15;;;;;12278:1;12271:9;12242:241;;;-1:-1:-1;12499:5:1;;11959:551;-1:-1:-1;;;;;11959:551:1:o;13278:127::-;13339:10;13334:3;13330:20;13327:1;13320:31;13370:4;13367:1;13360:15;13394:4;13391:1;13384:15;13410:287;13539:3;13577:6;13571:13;13593:66;13652:6;13647:3;13640:4;13632:6;13628:17;13593:66;:::i;:::-;13675:16;;;;;13410:287;-1:-1:-1;;13410:287:1:o
Swarm Source
ipfs://301b54d45842e49086b3aae88e1c6f6e89fe47466535573adfdaed69441b10da
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.