Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
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:
Factory
Compiler Version
v0.8.22+commit.4fc1097e
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./Market.sol"; import "./Router.sol"; contract Factory is Initializable, PausableUpgradeable, UUPSUpgradeable, OwnableUpgradeable { // State variables address public feeRecipient; uint256 public marketCreationFee; address public marketImplementation; address public governor; address public susdToken; uint256 public tradingFee; uint256 public lpShare; uint256 public protocolShare; mapping(address => bool) public whitelistedAddresses; mapping(uint256 => address) public markets; mapping(address => bool) public verifiedMarkets; uint256 public marketId; // Add router state variables address public router; // Events event MarketCreated( address indexed market, uint256 indexed marketId, string[] outcomes, uint256 resolutionDelay, address reporter, address governor ); event WhitelistedAddressAdded(address indexed account); event WhitelistedAddressRemoved(address indexed account); event MarketCreationFeeSet(uint256 newFee); event MarketVerified(address indexed market, bool verified); event GovernorSet(address newGovernor); event TradingFeeSet(uint256 newTradingFee); event FeeSharesSet(uint256 newLpShare, uint256 newProtocolShare); event MarketImplementationUpgraded(address newImplementation); // Add router events event RouterDeployed(address indexed router); event RouterUpdated(address indexed router); /// @custom:oz-upgrades-unsafe-allow constructor constructor() { _disableInitializers(); } function initialize( address _governor, address _feeRecipient, uint256 _marketCreationFee, address _marketImplementation, address _susdToken, uint256 _tradingFee ) external initializer { __Pausable_init(); __Ownable_init(_governor); __UUPSUpgradeable_init(); require(_governor != address(0), "Invalid governor"); require(_feeRecipient != address(0), "Invalid fee recipient"); require(_marketImplementation != address(0), "Invalid market implementation"); require(_susdToken != address(0), "Invalid SUSD token"); marketId = 0; feeRecipient = _feeRecipient; governor = _governor; marketCreationFee = _marketCreationFee; marketImplementation = _marketImplementation; susdToken = _susdToken; tradingFee = _tradingFee; // 10% default lpShare = 900; // 9% to LPs protocolShare = 100; // 1% to protocol // Deploy Router router = address(new Router(_susdToken, address(this))); emit RouterDeployed(router); } function _authorizeUpgrade(address newImplementation) internal override onlyOwner {} function createMarket( string[] calldata outcomes, uint256 _resolutionDelay, uint256 _disputeBondAmount, address _reporter, uint256 _b ) external whenNotPaused returns (address market) { if (!whitelistedAddresses[msg.sender]) { require( IERC20(susdToken).transferFrom( msg.sender, feeRecipient, marketCreationFee ), "Failed to transfer market creation fee" ); } // Deploy new Market instance with constructor params market = address(new Market( outcomes, feeRecipient, _resolutionDelay, _reporter, governor, _b, tradingFee, susdToken, _disputeBondAmount )); // Configure market with router Market(market).setRouter(router); Router(router).addMarket(market); marketId++; markets[marketId] = market; verifiedMarkets[market] = true; emit MarketCreated( market, marketId, outcomes, _resolutionDelay, _reporter, governor ); return market; } function upgradeMarketImplementation(address newImplementation) external onlyOwner { require(newImplementation != address(0), "Invalid implementation"); marketImplementation = newImplementation; emit MarketImplementationUpgraded(newImplementation); } function setTradingFee(uint256 _tradingFee) external onlyOwner { require(_tradingFee <= 2000, "Fee too high"); // Max 20% tradingFee = _tradingFee; emit TradingFeeSet(_tradingFee); } function setFeeShares(uint256 _lpShare, uint256 _protocolShare) external onlyOwner { require(_lpShare + _protocolShare == tradingFee, "Shares must sum to trading fee"); lpShare = _lpShare; protocolShare = _protocolShare; emit FeeSharesSet(_lpShare, _protocolShare); } function addWhitelistedAddress(address account) external onlyOwner { whitelistedAddresses[account] = true; emit WhitelistedAddressAdded(account); } function removeWhitelistedAddress(address account) external onlyOwner { whitelistedAddresses[account] = false; emit WhitelistedAddressRemoved(account); } function setMarketCreationFee(uint256 _fee) external onlyOwner { marketCreationFee = _fee; emit MarketCreationFeeSet(_fee); } function setGovernor(address _governor) external onlyOwner { require(_governor != address(0), "Invalid governor"); governor = _governor; emit GovernorSet(_governor); } function getMarketAddress(uint256 _marketId) external view returns (address) { return markets[_marketId]; } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } // Add function to update router function updateRouter(address _router) external onlyOwner { require(_router != address(0), "Invalid router address"); router = _router; emit RouterUpdated(_router); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol"; import {Initializable} from "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. 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 { /// @custom:storage-location erc7201:openzeppelin.storage.Ownable struct OwnableStorage { address _owner; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Ownable")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300; function _getOwnableStorage() private pure returns (OwnableStorage storage $) { assembly { $.slot := OwnableStorageLocation } } /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ function __Ownable_init(address initialOwner) internal onlyInitializing { __Ownable_init_unchained(initialOwner); } function __Ownable_init_unchained(address initialOwner) internal onlyInitializing { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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) { OwnableStorage storage $ = _getOwnableStorage(); return $._owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { OwnableStorage storage $ = _getOwnableStorage(); address oldOwner = $._owner; $._owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.20; /** * @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 Storage of the initializable contract. * * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions * when using with upgradeable contracts. * * @custom:storage-location erc7201:openzeppelin.storage.Initializable */ struct InitializableStorage { /** * @dev Indicates that the contract has been initialized. */ uint64 _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool _initializing; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00; /** * @dev The contract is already initialized. */ error InvalidInitialization(); /** * @dev The contract is not initializing. */ error NotInitializing(); /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint64 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 in the context of a constructor an `initializer` may be invoked any * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in * production. * * Emits an {Initialized} event. */ modifier initializer() { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); // Cache values to avoid duplicated sloads bool isTopLevelCall = !$._initializing; uint64 initialized = $._initialized; // Allowed calls: // - initialSetup: the contract is not in the initializing state and no previous version was // initialized // - construction: the contract is initialized at version 1 (no reininitialization) and the // current contract is just being deployed bool initialSetup = initialized == 0 && isTopLevelCall; bool construction = initialized == 1 && address(this).code.length == 0; if (!initialSetup && !construction) { revert InvalidInitialization(); } $._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 2**64 - 1 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint64 version) { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); if ($._initializing || $._initialized >= version) { revert InvalidInitialization(); } $._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() { _checkInitializing(); _; } /** * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}. */ function _checkInitializing() internal view virtual { if (!_isInitializing()) { revert NotInitializing(); } } /** * @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 { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); if ($._initializing) { revert InvalidInitialization(); } if ($._initialized != type(uint64).max) { $._initialized = type(uint64).max; emit Initialized(type(uint64).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint64) { return _getInitializableStorage()._initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _getInitializableStorage()._initializing; } /** * @dev Returns a pointer to the storage namespace. */ // solhint-disable-next-line var-name-mixedcase function _getInitializableStorage() private pure returns (InitializableStorage storage $) { assembly { $.slot := INITIALIZABLE_STORAGE } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.2.0) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.22; import {IERC1822Proxiable} from "@openzeppelin/contracts/interfaces/draft-IERC1822.sol"; import {ERC1967Utils} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol"; import {Initializable} from "./Initializable.sol"; /** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. */ abstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable { /// @custom:oz-upgrades-unsafe-allow state-variable-immutable address private immutable __self = address(this); /** * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)` * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called, * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string. * If the getter returns `"5.0.0"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function * during an upgrade. */ string public constant UPGRADE_INTERFACE_VERSION = "5.0.0"; /** * @dev The call is from an unauthorized context. */ error UUPSUnauthorizedCallContext(); /** * @dev The storage `slot` is unsupported as a UUID. */ error UUPSUnsupportedProxiableUUID(bytes32 slot); /** * @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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { _checkProxy(); _; } /** * @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() { _checkNotDelegated(); _; } function __UUPSUpgradeable_init() internal onlyInitializing { } function __UUPSUpgradeable_init_unchained() internal onlyInitializing { } /** * @dev Implementation of the ERC-1822 {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 notDelegated returns (bytes32) { return ERC1967Utils.IMPLEMENTATION_SLOT; } /** * @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); } /** * @dev Reverts if the execution is not performed via delegatecall or the execution * context is not of a proxy with an ERC-1967 compliant implementation pointing to self. * See {_onlyProxy}. */ function _checkProxy() internal view virtual { if ( address(this) == __self || // Must be called through delegatecall ERC1967Utils.getImplementation() != __self // Must be called through an active proxy ) { revert UUPSUnauthorizedCallContext(); } } /** * @dev Reverts if the execution is performed via delegatecall. * See {notDelegated}. */ function _checkNotDelegated() internal view virtual { if (address(this) != __self) { // Must not be called through delegatecall revert UUPSUnauthorizedCallContext(); } } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; /** * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call. * * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value * is expected to be the implementation slot in ERC-1967. * * Emits an {IERC1967-Upgraded} event. */ function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private { try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) { if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) { revert UUPSUnsupportedProxiableUUID(slot); } ERC1967Utils.upgradeToAndCall(newImplementation, data); } catch { // The implementation is not UUPS revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; import {Initializable} from "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol"; import {Initializable} from "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /// @custom:storage-location erc7201:openzeppelin.storage.Pausable struct PausableStorage { bool _paused; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Pausable")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant PausableStorageLocation = 0xcd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f03300; function _getPausableStorage() private pure returns (PausableStorage storage $) { assembly { $.slot := PausableStorageLocation } } /** * @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); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { PausableStorage storage $ = _getPausableStorage(); $._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) { PausableStorage storage $ = _getPausableStorage(); return $._paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { PausableStorage storage $ = _getPausableStorage(); $._paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { PausableStorage storage $ = _getPausableStorage(); $._paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. 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 Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.20; /** * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface IERC1822Proxiable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC1967.sol) pragma solidity ^0.8.20; /** * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC. */ interface IERC1967 { /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Emitted when the beacon is changed. */ event BeaconUpgraded(address indexed beacon); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.20; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeacon { /** * @dev Must return an address that can be used as a delegate call target. * * {UpgradeableBeacon} will check that this address is a contract. */ function implementation() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.2.0) (proxy/ERC1967/ERC1967Utils.sol) pragma solidity ^0.8.22; import {IBeacon} from "../beacon/IBeacon.sol"; import {IERC1967} from "../../interfaces/IERC1967.sol"; import {Address} from "../../utils/Address.sol"; import {StorageSlot} from "../../utils/StorageSlot.sol"; /** * @dev This library provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots. */ library ERC1967Utils { /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1. */ // solhint-disable-next-line private-vars-leading-underscore bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev The `implementation` of the proxy is invalid. */ error ERC1967InvalidImplementation(address implementation); /** * @dev The `admin` of the proxy is invalid. */ error ERC1967InvalidAdmin(address admin); /** * @dev The `beacon` of the proxy is invalid. */ error ERC1967InvalidBeacon(address beacon); /** * @dev An upgrade function sees `msg.value > 0` that may be lost. */ error ERC1967NonPayable(); /** * @dev Returns the current implementation address. */ function getImplementation() internal view returns (address) { return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the ERC-1967 implementation slot. */ function _setImplementation(address newImplementation) private { if (newImplementation.code.length == 0) { revert ERC1967InvalidImplementation(newImplementation); } StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Performs implementation upgrade with additional setup call if data is nonempty. * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected * to avoid stuck value in the contract. * * Emits an {IERC1967-Upgraded} event. */ function upgradeToAndCall(address newImplementation, bytes memory data) internal { _setImplementation(newImplementation); emit IERC1967.Upgraded(newImplementation); if (data.length > 0) { Address.functionDelegateCall(newImplementation, data); } else { _checkNonPayable(); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1. */ // solhint-disable-next-line private-vars-leading-underscore bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Returns the current admin. * * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103` */ function getAdmin() internal view returns (address) { return StorageSlot.getAddressSlot(ADMIN_SLOT).value; } /** * @dev Stores a new address in the ERC-1967 admin slot. */ function _setAdmin(address newAdmin) private { if (newAdmin == address(0)) { revert ERC1967InvalidAdmin(address(0)); } StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {IERC1967-AdminChanged} event. */ function changeAdmin(address newAdmin) internal { emit IERC1967.AdminChanged(getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is the keccak-256 hash of "eip1967.proxy.beacon" subtracted by 1. */ // solhint-disable-next-line private-vars-leading-underscore bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Returns the current beacon. */ function getBeacon() internal view returns (address) { return StorageSlot.getAddressSlot(BEACON_SLOT).value; } /** * @dev Stores a new beacon in the ERC-1967 beacon slot. */ function _setBeacon(address newBeacon) private { if (newBeacon.code.length == 0) { revert ERC1967InvalidBeacon(newBeacon); } StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon; address beaconImplementation = IBeacon(newBeacon).implementation(); if (beaconImplementation.code.length == 0) { revert ERC1967InvalidImplementation(beaconImplementation); } } /** * @dev Change the beacon and trigger a setup call if data is nonempty. * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected * to avoid stuck value in the contract. * * Emits an {IERC1967-BeaconUpgraded} event. * * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for * efficiency. */ function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal { _setBeacon(newBeacon); emit IERC1967.BeaconUpgraded(newBeacon); if (data.length > 0) { Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data); } else { _checkNonPayable(); } } /** * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract * if an upgrade doesn't perform an initialization call. */ function _checkNonPayable() private { if (msg.value > 0) { revert ERC1967NonPayable(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ 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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.2.0) (utils/Address.sol) pragma solidity ^0.8.20; import {Errors} from "./Errors.sol"; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert Errors.InsufficientBalance(address(this).balance, amount); } (bool success, bytes memory returndata) = recipient.call{value: amount}(""); if (!success) { _revert(returndata); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {Errors.FailedCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert Errors.InsufficientBalance(address(this).balance, value); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case * of an unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {Errors.FailedCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}. */ function _revert(bytes memory returndata) 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 assembly ("memory-safe") { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert Errors.FailedCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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 Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol) pragma solidity ^0.8.20; /** * @dev Collection of common custom errors used in multiple contracts * * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library. * It is recommended to avoid relying on the error API for critical functionality. * * _Available since v5.1._ */ library Errors { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error InsufficientBalance(uint256 balance, uint256 needed); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedCall(); /** * @dev The deployment failed. */ error FailedDeployment(); /** * @dev A necessary precompile is missing. */ error MissingPrecompile(address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { bool private _paused; /** * @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); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _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 { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @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()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @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 EIP-1153 (transient storage) is available on the chain you're deploying at, * consider using {ReentrancyGuardTransient} instead. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.20; /** * @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 ERC-1967 implementation slot: * ```solidity * contract ERC1967 { * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot. * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(newImplementation.code.length > 0); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * TIP: Consider using this library along with {SlotDerivation}. */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct Int256Slot { int256 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) { assembly ("memory-safe") { r.slot := slot } } /** * @dev Returns a `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { assembly ("memory-safe") { r.slot := slot } } /** * @dev Returns a `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { assembly ("memory-safe") { r.slot := slot } } /** * @dev Returns a `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { assembly ("memory-safe") { r.slot := slot } } /** * @dev Returns a `Int256Slot` with member `value` located at `slot`. */ function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) { assembly ("memory-safe") { r.slot := slot } } /** * @dev Returns a `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { assembly ("memory-safe") { 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) { assembly ("memory-safe") { r.slot := store.slot } } /** * @dev Returns a `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { assembly ("memory-safe") { 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) { assembly ("memory-safe") { r.slot := store.slot } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; library LMSRMath { // Fixed point precision uint256 constant FIXED_ONE = 1e18; // Maximum value for exponentiation to avoid overflow uint256 constant MAX_EXPONENT = 100e18; function calcCost( uint256[] memory outcomeShares, int256[] memory shareDeltas, uint256 b ) internal pure returns (int256) { require(outcomeShares.length == shareDeltas.length, "Array length mismatch"); require(outcomeShares.length > 0, "Empty arrays"); require(b > 0, "Invalid liquidity parameter"); // Calculate cost before trade uint256 costBefore = calcCostFromShares(outcomeShares, b); // Calculate new outcome shares after trade uint256[] memory newShares = new uint256[](outcomeShares.length); for (uint256 i = 0; i < outcomeShares.length; i++) { if (shareDeltas[i] >= 0) { newShares[i] = outcomeShares[i] + uint256(shareDeltas[i]); } else { require(outcomeShares[i] >= uint256(-shareDeltas[i]), "Insufficient shares"); newShares[i] = outcomeShares[i] - uint256(-shareDeltas[i]); } } // Calculate cost after trade uint256 costAfter = calcCostFromShares(newShares, b); // Return difference in costs if (costAfter >= costBefore) { return int256(costAfter - costBefore); } else { return -int256(costBefore - costAfter); } } function calcCostFromShares( uint256[] memory shares, uint256 b ) internal pure returns (uint256) { uint256 sum = 0; // Calculate sum of exp(q_i/b) for all outcomes for (uint256 i = 0; i < shares.length; i++) { // Normalize shares by dividing by b uint256 normalizedShares = (shares[i] * FIXED_ONE) / b; // Prevent overflow by capping the exponent if (normalizedShares > MAX_EXPONENT) { normalizedShares = MAX_EXPONENT; } // Calculate exp(q_i/b) and add to sum sum += exp(normalizedShares); } // Calculate b * ln(sum) return (b * ln(sum)) / FIXED_ONE; } function calcMarginalPrice( uint256 outcomeIndex, uint256[] memory shares, uint256 b ) internal pure returns (uint256) { require(outcomeIndex < shares.length, "Invalid outcome index"); // Calculate sum of exp(q_i/b) for all outcomes uint256 sum = 0; for (uint256 i = 0; i < shares.length; i++) { uint256 normalizedShares = (shares[i] * FIXED_ONE) / b; if (normalizedShares > MAX_EXPONENT) { normalizedShares = MAX_EXPONENT; } sum += exp(normalizedShares); } // Calculate exp(q_i/b) for the specific outcome uint256 normalizedOutcomeShares = (shares[outcomeIndex] * FIXED_ONE) / b; if (normalizedOutcomeShares > MAX_EXPONENT) { normalizedOutcomeShares = MAX_EXPONENT; } uint256 outcomeExp = exp(normalizedOutcomeShares); // Calculate price = exp(q_i/b) / sum(exp(q_j/b)) return (outcomeExp * FIXED_ONE) / sum; } function exp(uint256 x) internal pure returns (uint256) { // If x is 0, e^0 = 1 if (x == 0) return FIXED_ONE; // If x is very large, return maximum value to avoid overflow if (x > MAX_EXPONENT) return type(uint256).max; // Taylor series approximation for e^x // e^x = 1 + x + x^2/2! + x^3/3! + ... + x^n/n! uint256 result = FIXED_ONE; // 1 uint256 term = FIXED_ONE; // Start with 1 // Add x term = (term * x) / FIXED_ONE; result += term; // Add x^2/2! term = (term * x) / (2 * FIXED_ONE); result += term; // Add x^3/3! term = (term * x) / (3 * FIXED_ONE); result += term; // Add x^4/4! term = (term * x) / (4 * FIXED_ONE); result += term; // Add x^5/5! term = (term * x) / (5 * FIXED_ONE); result += term; // Add x^6/6! term = (term * x) / (6 * FIXED_ONE); result += term; // Add x^7/7! term = (term * x) / (7 * FIXED_ONE); result += term; // Add x^8/8! term = (term * x) / (8 * FIXED_ONE); result += term; return result; } function ln(uint256 x) internal pure returns (uint256) { // If x is 0 or very small, return a very negative number // In practice, this should never happen in LMSR if (x < FIXED_ONE / 1000) { return 0; // Should revert in practice } // If x is 1, ln(1) = 0 if (x == FIXED_ONE) return 0; // If x < 1, use ln(x) = -ln(1/x) if (x < FIXED_ONE) { return type(uint256).max - ln((FIXED_ONE * FIXED_ONE) / x) + 1; } // For x > 1, use binary search to find y such that e^y = x uint256 low = 0; uint256 high = MAX_EXPONENT; uint256 mid; uint256 midExp; // Binary search for 32 iterations (sufficient precision) for (uint256 i = 0; i < 32; i++) { mid = (low + high) / 2; midExp = exp(mid); if (midExp < x) { low = mid; } else if (midExp > x) { high = mid; } else { return mid; // Exact match found } } // Return the closest approximation return (low + high) / 2; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./LMSRMath.sol"; contract Market is Ownable, Pausable, ReentrancyGuard { // State variables address public factory; address public feeRecipient; address public reporter; address public governor; address public susdToken; uint256 public b; uint256 public resolutionDelay; uint256 public tradingFee; uint256 public disputeBondAmount; uint256 public reporterResolutionDeadline; uint256 public resolutionTimestamp; uint256 public totalVotes; uint256 public mostVotedOutcome; uint256 public winningOutcome; bool public resolved; string[] public outcomes; mapping(uint256 => uint256) public outcomeShares; mapping(address => mapping(uint256 => uint256)) public userShares; mapping(address => uint256) public disputeBonds; mapping(uint256 => uint256) public disputeVotes; mapping(address => bool) public hasVoted; uint256 public constant DISPUTE_PERIOD = 7 days; uint256 public constant MAX_TRADE_PERCENTAGE = 10; // Add router state variable address public router; // Events event Trade( address indexed user, int256[] amounts, uint256[] shareBalances, uint256 feesPaid ); event MarketResolved(uint256 indexed outcome); event ResolutionProposed(uint256 indexed outcome, uint256 resolutionTimestamp); event DisputeSubmitted( address indexed disputer, uint256 indexed proposedOutcome, uint256 bondAmount ); event VoteCast(address indexed voter, uint256 indexed outcome); event Payout(address indexed user, uint256 amount); event ReporterDeadlineSet(uint256 deadline); event EmergencyResolution(uint256 indexed outcome, address resolver); // Add router events event RouterSet(address indexed router); event RouterTradeExecuted(address indexed user, int256[] shareDeltas); event RouterSellExecuted(address indexed user, int256[] shareDeltas, uint256 returnAmount); event RouterPayoutExecuted(address indexed user, uint256 amount); struct MarketParams { string[] outcomes; address feeRecipient; uint256 resolutionDelay; address reporter; address governor; uint256 b; uint256 tradingFee; address susdToken; uint256 disputeBondAmount; } constructor( string[] memory _outcomes, address _feeRecipient, uint256 _resolutionDelay, address _reporter, address _governor, uint256 _b, uint256 _tradingFee, address _susdToken, uint256 _disputeBondAmount ) Ownable(_governor) Pausable() ReentrancyGuard() { require(_outcomes.length >= 2, "Must have at least 2 outcomes"); require(_feeRecipient != address(0), "Invalid fee recipient"); require(_reporter != address(0), "Invalid reporter"); require(_governor != address(0), "Invalid governor"); require(_susdToken != address(0), "Invalid SUSD token"); require(_b > 0, "Invalid liquidity parameter"); factory = msg.sender; feeRecipient = _feeRecipient; reporter = _reporter; governor = _governor; susdToken = _susdToken; b = _b; resolutionDelay = _resolutionDelay; tradingFee = _tradingFee; disputeBondAmount = _disputeBondAmount; for (uint256 i = 0; i < _outcomes.length; i++) { outcomes.push(_outcomes[i]); outcomeShares[i] = 1e18; } reporterResolutionDeadline = block.timestamp + 30 days; emit ReporterDeadlineSet(reporterResolutionDeadline); _transferOwnership(governor); } // Modifiers modifier onlyReporter() { require(msg.sender == reporter, "Only reporter can call this function"); _; } modifier onlyGovernor() { require(msg.sender == governor, "Only governor can call this function"); _; } modifier onlyFactory() { require(msg.sender == factory, "Only factory can call this function"); _; } // Add router modifier modifier onlyRouter() { require(msg.sender == router, "Only router can call this function"); _; } // Existing Market contract functions function getCurrentShares() public view returns (uint256[] memory) { uint256[] memory shares = new uint256[](outcomes.length); for (uint256 i = 0; i < outcomes.length; i++) { shares[i] = outcomeShares[i]; } return shares; } function getCost(int256[] memory shareDeltas) public view returns (int256) { require(shareDeltas.length == outcomes.length, "Invalid array length"); // Get current shares uint256[] memory shares = getCurrentShares(); // Calculate cost using LMSR math return LMSRMath.calcCost(shares, shareDeltas, b); } function getNetCost(int256[] memory shareDeltas) public view returns (uint256) { int256 cost = getCost(shareDeltas); // If cost is negative (selling), return 0 as net cost if (cost <= 0) return 0; // Apply trading fee uint256 fee = (uint256(cost) * tradingFee) / 10000; return uint256(cost) + fee; } function getMarginalPrice(uint256 outcomeIndex) public view returns (uint256) { require(outcomeIndex < outcomes.length, "Invalid outcome index"); uint256[] memory shares = getCurrentShares(); return LMSRMath.calcMarginalPrice(outcomeIndex, shares, b); } function resolveMarket(uint256 outcome) external onlyReporter { require(!resolved, "Market already resolved"); require(block.timestamp >= reporterResolutionDeadline, "Too early"); require(outcome < outcomes.length, "Invalid outcome"); winningOutcome = outcome; resolutionTimestamp = block.timestamp; resolved = true; emit ResolutionProposed(outcome, resolutionTimestamp); emit MarketResolved(outcome); } function overrideResolution(uint256 outcome) external onlyGovernor { require(!resolved, "Market already resolved"); require(block.timestamp < resolutionTimestamp, "Dispute period ended"); require(outcome < outcomes.length, "Invalid outcome"); resolved = true; winningOutcome = outcome; resolutionTimestamp = 0; emit MarketResolved(outcome); } // Dispute mechanism for users function submitDispute(uint256 proposedOutcome) external nonReentrant { require(!resolved, "Market already resolved"); require(proposedOutcome < outcomes.length, "Invalid outcome"); require(!hasVoted[msg.sender], "Already voted"); require(block.timestamp <= resolutionTimestamp + DISPUTE_PERIOD, "Dispute period ended"); require(IERC20(susdToken).transferFrom(msg.sender, address(this), disputeBondAmount), "Bond transfer failed"); disputeBonds[msg.sender] = disputeBondAmount; disputeVotes[proposedOutcome] += disputeBondAmount; totalVotes += disputeBondAmount; hasVoted[msg.sender] = true; if (disputeVotes[proposedOutcome] > disputeVotes[mostVotedOutcome]) { mostVotedOutcome = proposedOutcome; } emit DisputeSubmitted(msg.sender, proposedOutcome, disputeBondAmount); emit VoteCast(msg.sender, proposedOutcome); } function finalizeDispute() external nonReentrant { require(!resolved, "Market already resolved"); require(block.timestamp > resolutionTimestamp + DISPUTE_PERIOD, "Dispute period not ended"); require(totalVotes > 0, "No disputes submitted"); winningOutcome = mostVotedOutcome; resolved = true; emit MarketResolved(mostVotedOutcome); } function claimDisputeBond() external nonReentrant { require(resolved, "Market not resolved"); require(disputeBonds[msg.sender] > 0, "No bond to claim"); require(block.timestamp > resolutionTimestamp + DISPUTE_PERIOD, "Dispute period not ended"); uint256 bondAmount = disputeBonds[msg.sender]; disputeBonds[msg.sender] = 0; // If voted for winning outcome, get reward from losing votes if (hasVoted[msg.sender]) { uint256 shareOfWinningVotes = (bondAmount * 1e18) / disputeVotes[winningOutcome]; bondAmount += (totalVotes - disputeVotes[winningOutcome]) * shareOfWinningVotes / 1e18; } require(IERC20(susdToken).transfer(msg.sender, bondAmount), "Bond return failed"); } // Emergency resolution if reporter never resolves function emergencyResolve() external { require(!resolved, "Market already resolved"); require(block.timestamp > reporterResolutionDeadline, "Reporter deadline not passed"); // If disputes exist, use most voted outcome uint256 finalOutcome = totalVotes > 0 ? mostVotedOutcome : 0; resolved = true; winningOutcome = finalOutcome; emit EmergencyResolution(finalOutcome, msg.sender); emit MarketResolved(finalOutcome); } // Allow governor to set a new reporter deadline function setReporterDeadline(uint256 newDeadline) external onlyGovernor { require(newDeadline > block.timestamp, "Deadline must be in future"); reporterResolutionDeadline = newDeadline; emit ReporterDeadlineSet(newDeadline); } function verifyInitialization( string[] calldata _outcomes, uint256 _resolutionDelay, address _reporter, address _governor ) external view returns (bool) { // Verify that initialization parameters match if (_outcomes.length != outcomes.length) return false; if (_reporter != reporter) return false; if (_governor != governor) return false; if (_resolutionDelay != resolutionDelay) return false; // Verify outcomes match for (uint256 i = 0; i < _outcomes.length; i++) { if (keccak256(bytes(_outcomes[i])) != keccak256(bytes(outcomes[i]))) { return false; } } return true; } // View functions function getMarketInfo() external view returns ( string[] memory, uint256[] memory, uint256, bool, uint256 ) { uint256[] memory shares = getCurrentShares(); return (outcomes, shares, b, resolved, winningOutcome); } function getResolutionDelay() external view returns (uint256) { return resolutionDelay; } function getProposedOutcome() external view returns (uint256) { return winningOutcome; } function getResolutionTimestamp() external view returns (uint256) { return resolutionTimestamp; } function getReporter() external view returns (address) { return reporter; } function getGovernor() external view returns (address) { return governor; } function getAIAddress() external view returns (address) { return address(this); } function getTradingFee() external view returns (uint256) { return tradingFee; } // Pause/unpause functions function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } // Add router setter function setRouter(address _router) external onlyOwner { require(_router != address(0), "Invalid router address"); router = _router; emit RouterSet(_router); } // Modify trade function to be router-only function tradeViaRouter( address user, int256[] calldata shareDeltas ) external onlyRouter whenNotPaused { require(!resolved, "Market already resolved"); require(shareDeltas.length == outcomes.length, "Invalid array length"); // Validate trade size to prevent manipulation uint256[] memory shares = getCurrentShares(); for (uint256 i = 0; i < shareDeltas.length; i++) { if (shareDeltas[i] > 0) { require( uint256(shareDeltas[i]) <= (shares[i] * MAX_TRADE_PERCENTAGE) / 100, "Trade size too large" ); } else if (shareDeltas[i] < 0) { require( uint256(-shareDeltas[i]) <= userShares[user][i], "Insufficient shares" ); } } // Update shares for (uint256 i = 0; i < shareDeltas.length; i++) { if (shareDeltas[i] != 0) { outcomeShares[i] = uint256(int256(outcomeShares[i]) + shareDeltas[i]); userShares[user][i] = uint256(int256(userShares[user][i]) + shareDeltas[i]); } } emit RouterTradeExecuted(user, shareDeltas); } // Add router-only sell function function sellViaRouter( address user, int256[] calldata shareDeltas ) external onlyRouter whenNotPaused returns (uint256) { require(!resolved, "Market already resolved"); require(shareDeltas.length == outcomes.length, "Invalid array length"); // Calculate return amount int256 cost = getCost(shareDeltas); uint256 returnAmount = uint256(-cost); // Cost will be negative for sells // Update shares for (uint256 i = 0; i < shareDeltas.length; i++) { if (shareDeltas[i] != 0) { require( uint256(-shareDeltas[i]) <= userShares[user][i], "Insufficient shares" ); outcomeShares[i] = uint256(int256(outcomeShares[i]) + shareDeltas[i]); userShares[user][i] = uint256(int256(userShares[user][i]) + shareDeltas[i]); } } emit RouterSellExecuted(user, shareDeltas, returnAmount); return returnAmount; } // Add router-only payout function function payoutViaRouter( address user ) external onlyRouter returns (uint256) { require(resolved, "Market not resolved"); uint256 shares = userShares[user][winningOutcome]; require(shares > 0, "No winning shares"); uint256 payoutAmount = shares; userShares[user][winningOutcome] = 0; emit RouterPayoutExecuted(user, payoutAmount); return payoutAmount; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./Market.sol"; contract Router is Ownable, ReentrancyGuard { // State variables mapping(address => uint256) public marketBalances; mapping(address => bool) public validMarkets; IERC20 public susdToken; address public factory; // Events event MarketAdded(address indexed market); event MarketRemoved(address indexed market); event TokensDeposited(address indexed user, address indexed market, uint256 amount); event TokensWithdrawn(address indexed user, address indexed market, uint256 amount); constructor(address _susdToken, address _factory) Ownable(msg.sender) { require(_susdToken != address(0), "Invalid token address"); susdToken = IERC20(_susdToken); factory = _factory; } // Modifiers modifier onlyValidMarket(address market) { require(validMarkets[market], "Invalid market"); _; } modifier onlyFactory() { require(msg.sender == factory, "Only factory can call this function"); _; } // Admin functions function addMarket(address market) external onlyFactory { require(market != address(0), "Invalid market address"); require(!validMarkets[market], "Market already added"); validMarkets[market] = true; emit MarketAdded(market); } function removeMarket(address market) external onlyFactory { require(validMarkets[market], "Market not found"); validMarkets[market] = false; emit MarketRemoved(market); } // User functions function trade( address market, int256[] calldata shareDeltas, uint256 maxCost ) external nonReentrant onlyValidMarket(market) { Market marketContract = Market(market); // Calculate cost uint256 tradeCost = marketContract.getNetCost(shareDeltas); require(tradeCost <= maxCost, "Cost exceeds maximum"); // Transfer tokens from user to router require( susdToken.transferFrom(msg.sender, address(this), tradeCost), "Token transfer failed" ); // Update market balance marketBalances[market] += tradeCost; // Execute trade on market marketContract.tradeViaRouter(msg.sender, shareDeltas); } function sell( address market, int256[] calldata shareDeltas ) external nonReentrant onlyValidMarket(market) { Market marketContract = Market(market); // Execute sell on market and get return amount uint256 returnAmount = marketContract.sellViaRouter(msg.sender, shareDeltas); // Transfer tokens from router to user require( susdToken.transfer(msg.sender, returnAmount), "Token transfer failed" ); // Update market balance marketBalances[market] -= returnAmount; } function payout( address market ) external nonReentrant onlyValidMarket(market) { Market marketContract = Market(market); // Get payout amount from market uint256 payoutAmount = marketContract.payoutViaRouter(msg.sender); require(payoutAmount > 0, "No payout available"); // Transfer tokens from router to user require( susdToken.transfer(msg.sender, payoutAmount), "Token transfer failed" ); // Update market balance marketBalances[market] -= payoutAmount; } // View functions function getMarketBalance(address market) external view returns (uint256) { return marketBalances[market]; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "viaIR": true, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"ERC1967InvalidImplementation","type":"error"},{"inputs":[],"name":"ERC1967NonPayable","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedCall","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"UUPSUnauthorizedCallContext","type":"error"},{"inputs":[{"internalType":"bytes32","name":"slot","type":"bytes32"}],"name":"UUPSUnsupportedProxiableUUID","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newLpShare","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newProtocolShare","type":"uint256"}],"name":"FeeSharesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"market","type":"address"},{"indexed":true,"internalType":"uint256","name":"marketId","type":"uint256"},{"indexed":false,"internalType":"string[]","name":"outcomes","type":"string[]"},{"indexed":false,"internalType":"uint256","name":"resolutionDelay","type":"uint256"},{"indexed":false,"internalType":"address","name":"reporter","type":"address"},{"indexed":false,"internalType":"address","name":"governor","type":"address"}],"name":"MarketCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"MarketCreationFeeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newImplementation","type":"address"}],"name":"MarketImplementationUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"market","type":"address"},{"indexed":false,"internalType":"bool","name":"verified","type":"bool"}],"name":"MarketVerified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"router","type":"address"}],"name":"RouterDeployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"router","type":"address"}],"name":"RouterUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newTradingFee","type":"uint256"}],"name":"TradingFeeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"WhitelistedAddressAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"WhitelistedAddressRemoved","type":"event"},{"inputs":[],"name":"UPGRADE_INTERFACE_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addWhitelistedAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"outcomes","type":"string[]"},{"internalType":"uint256","name":"_resolutionDelay","type":"uint256"},{"internalType":"uint256","name":"_disputeBondAmount","type":"uint256"},{"internalType":"address","name":"_reporter","type":"address"},{"internalType":"uint256","name":"_b","type":"uint256"}],"name":"createMarket","outputs":[{"internalType":"address","name":"market","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_marketId","type":"uint256"}],"name":"getMarketAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_governor","type":"address"},{"internalType":"address","name":"_feeRecipient","type":"address"},{"internalType":"uint256","name":"_marketCreationFee","type":"uint256"},{"internalType":"address","name":"_marketImplementation","type":"address"},{"internalType":"address","name":"_susdToken","type":"address"},{"internalType":"uint256","name":"_tradingFee","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lpShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketCreationFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"markets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"removeWhitelistedAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lpShare","type":"uint256"},{"internalType":"uint256","name":"_protocolShare","type":"uint256"}],"name":"setFeeShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governor","type":"address"}],"name":"setGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setMarketCreationFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tradingFee","type":"uint256"}],"name":"setTradingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"susdToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"updateRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeMarketImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"verifiedMarkets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a080604052346100cc57306080527ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a009081549060ff8260401c166100bd57506001600160401b036002600160401b031982821601610078575b6040516152e890816100d2823960805181818161102701526111120152f35b6001600160401b031990911681179091556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a1388080610059565b63f92ee8a960e01b8152600490fd5b600080fdfe60806040818152600491823610156200001757600080fd5b600092833560e01c91826306c933d814620014c5575081630c340a24146200149a5781631103f315146200147957816329975b43146200140a5781632ef1bdfa14620013e95781632f1ac04a1462000a9c57816339cfc38614620013be5781633f4ba83a14620013405781634690484014620013165781634f1ef286146200108c57816352d1902d1462001010578163530cd5ab1462000fa457816356f433521462000f835781635c975abb1462000f4f57816366f13ae41462000e875781636ed71ede1462000e66578163715018a61462000df75781637ba732671462000d415781638456cb591462000cd25781638da5cb5b1462000c995781639cb120c41462000c575781639f37022a1462000c05578163ad3cb1cc1462000b61578163b0d54bcf1462000ad1578163b1283e771462000a9c578163c42cf5351462000a1e578163c851cc32146200096d578163d1870db91462000603578163e9d8a6ab1462000266578163ebc38ab01462000245578163f2fde38b146200020d578163f39690e414620001df575063f887ea4014620001b257600080fd5b34620001db5781600319360112620001db57600c5490516001600160a01b039091168152602090f35b5080fd5b90503462000209578260031936011262000209575490516001600160a01b03909116815260209150f35b8280fd5b83346200024257602036600319011262000242576200023f6200022f62001504565b62000239620016f7565b62001681565b80f35b80fd5b505034620001db5781600319360112620001db576020906006549051908152f35b838334620001db5760a0366003190112620001db5767ffffffffffffffff8335818111620005ff5736602382011215620005ff5780850135828111620005fb576024808301928136918460051b010111620005f757620002c562001520565b620002cf62001732565b3387526020976008895260ff87892054161562000507575b60018060a01b0395868954169087600354169360055489855416918b5194612dac8087019587871090871117620004f5578f94928e889795938f938f8f6200033e926200180a8d39610120808b528a0191620015e2565b978701528b35908601521697886060850152608084015260843560a084015260c083015260e0820152610100604435910152039089f08015620004eb5786169786600c5416893b15620001db57885163c0d7865560e01b81528381019190915281818681838e5af18015620004e157620004cf575b509086600c5416803b156200020957828091868c8c5194859384926393e3063360e01b8452888401525af18015620004c557908391620004ad575b5050600b549060001982146200049b575091878996949260017f1b179d22cf76bd96582f4407459d768c37c7fb000a78cb008159d61f1c7175ad97950180600b55815260098c52818120886bffffffffffffffffffffffff60a01b825416179055878152600a8c5220600160ff19825416179055600b54966003541690620004838951958695608087526080870191620015e2565b92358b8501528884015260608301520390a351908152f35b634e487b7160e01b8352601190528382fd5b620004b89062001537565b620001db57818b620003ee565b89513d85823e3d90fd5b620004da9062001537565b8a620003b3565b89513d84823e3d90fd5b87513d8a823e3d90fd5b634e487b7160e01b8f5260418852898ffd5b8054885460015489516323b872dd60e01b815233818601526001600160a01b03928316878201526044810191909152918b91839160649183918e91165af1908115620005ed578991620005ac575b50620002e757865162461bcd60e51b81529081018990526026818401527f4661696c656420746f207472616e73666572206d61726b6574206372656174696044820152656f6e2066656560d01b6064820152608490fd5b90508981813d8311620005e5575b620005c6818362001562565b81010312620005e157518015158103620005e1578a62000555565b8880fd5b503d620005ba565b88513d8b823e3d90fd5b8580fd5b8480fd5b8380fd5b905034620002095760c036600319011262000209576200062262001504565b6024356001600160a01b038181169491859003620005f7576200064462001520565b936084359482861680960362000969577ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a009586549160ff83871c16159667ffffffffffffffff938481168015908162000960575b600114908162000955575b1590816200094b575b506200093b5767ffffffffffffffff1981166001178a55869190896200091b575b50620006d86200175f565b620006e26200175f565b60008051602062005293833981519152805460ff19169055620007046200175f565b6200070e6200175f565b620007198162001681565b620007236200175f565b169062000732821515620015a2565b8915620008e05785169081156200089d57821562000865578a600b556bffffffffffffffffffffffff60a01b998a8c5416178b55896003541617600355604435600155886002541617600255808884541617835560a4356005556103846006556064600755845192610cbd9081850193858510908511176200085257509183918693620045b68439815230602082015203019087f080156200084857168094600c541617600c5551927f8d7aabbc0caa3d9f60ad533535e9852ab0cb0efeb5d93c460244209713e7589d8580a262000808578280f35b805468ff000000000000000019169055600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a138808280f35b82513d88823e3d90fd5b634e487b7160e01b8b526041905260248afd5b865162461bcd60e51b8152602081870152601260248201527124b73b30b634b21029aaa9a2103a37b5b2b760711b6044820152606490fd5b865162461bcd60e51b8152602081870152601d60248201527f496e76616c6964206d61726b657420696d706c656d656e746174696f6e0000006044820152606490fd5b865162461bcd60e51b81526020818701526015602482015274125b9d985b1a5908199959481c9958da5c1a595b9d605a1b6044820152606490fd5b68ffffffffffffffffff191668010000000000000001178a5538620006cd565b875163f92ee8a960e01b81528690fd5b90501538620006ac565b303b159150620006a3565b8a915062000698565b8780fd5b9050346200020957602036600319011262000209576200098c62001504565b62000996620016f7565b6001600160a01b0316918215620009e2575050600c80546001600160a01b031916821790557f7aed1d3e8155a07ccf395e44ea3109a0e2d6c9b29bbbe9f142d9790596f4dc808280a280f35b906020606492519162461bcd60e51b83528201526016602482015275496e76616c696420726f75746572206164647265737360501b6044820152fd5b505034620001db576020366003190112620001db5760207f1cbb37f5a02c38ab13773cb770fae505cce417a4d81560117389e3a9f7e001f29162000a6162001504565b62000a6b620016f7565b6001600160a01b03169062000a82821515620015a2565b600380546001600160a01b0319168317905551908152a180f35b90503462000209576020366003190112620002095735825260096020908152918190205490516001600160a01b039091168152f35b9190503462000209576020366003190112620002095781359162000af4620016f7565b6107d0831162000b305750816020917f8dac05368d9e10fc43395ddcbdcae6457d0b4c159bc464504c1b386aed79be129360055551908152a180f35b6020606492519162461bcd60e51b8352820152600c60248201526b08ccaca40e8dede40d0d2ced60a31b6044820152fd5b90503462000209578260031936011262000209578151908282019082821067ffffffffffffffff83111762000bf25750825260058152602090640352e302e360dc1b6020820152825193849260208452825192836020860152825b84811062000bdb57505050828201840152601f01601f19168101030190f35b818101830151888201880152879550820162000bbc565b634e487b7160e01b855260419052602484fd5b9050346200020957602036600319011262000209577f583934e5b9be5235b40454ddbb9f61b157293eafefaa7b988cff6fd79f2ca43e91602091359062000c4b620016f7565b8160015551908152a180f35b505034620001db576020366003190112620001db5760209160ff9082906001600160a01b0362000c8662001504565b168152600a855220541690519015158152f35b505034620001db5781600319360112620001db57600080516020620052738339815191525490516001600160a01b039091168152602090f35b505034620001db5781600319360112620001db5760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2589162000d14620016f7565b62000d1e62001732565b60008051602062005293833981519152805460ff1916600117905551338152a180f35b9190503462000209576020366003190112620002095762000d6162001504565b62000d6b620016f7565b6001600160a01b031691821562000dbc5750600280546001600160a01b03191683179055519081527f2f8d421b6e2d75bbf3d3d560eed8a5c39e6ccdc4c00d72195885d91a38a4063a90602090a180f35b6020606492519162461bcd60e51b8352820152601660248201527524b73b30b634b21034b6b83632b6b2b73a30ba34b7b760511b6044820152fd5b8334620002425780600319360112620002425762000e14620016f7565b6000805160206200527383398151915280546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b505034620001db5781600319360112620001db57602090600b549051908152f35b838334620001db5780600319360112620001db5782356024359362000eab620016f7565b84820180831162000f3c576005540362000ef957507ffabf709ddcab6908663bc153944d0c2f54570ba46d078aecb046e384610874d49293816006558060075582519182526020820152a180f35b606490602084519162461bcd60e51b8352820152601e60248201527f536861726573206d7573742073756d20746f2074726164696e672066656500006044820152fd5b634e487b7160e01b855260118252602485fd5b505034620001db5781600319360112620001db5760209060ff60008051602062005293833981519152541690519015158152f35b505034620001db5781600319360112620001db576020906005549051908152f35b505034620001db576020366003190112620001db5762000fc362001504565b62000fcd620016f7565b6001600160a01b03168083526008602052908220805460ff191690557ff1abf01a1043b7c244d128e8595cf0c1d10743b022b03a02dffd8ca3bf729f5a8280a280f35b8284346200024257806003193601126200024257507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031630036200107f57602090517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8152f35b5163703e46dd60e11b8152fd5b918091506003193601126200020957620010a562001504565b90602493843567ffffffffffffffff8111620001db5736602382011215620001db5780850135620010d68162001585565b94620010e58551968762001562565b81865260209182870193368a8383010111620005f7578186928b8693018737880101526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116308114908115620012e7575b50620012d7576200114f620016f7565b81169585516352d1902d60e01b815283818a818b5afa8691816200129e575b506200118b575050505050505191634c9c8ce360e01b8352820152fd5b9088888894938c7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc91828103620012895750853b1562001275575080546001600160a01b031916821790558451889392917fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b8580a282511562001256575050620012479582915190845af4913d156200124b573d620012386200122e8262001585565b9251928362001562565b81528581943d92013e620017a1565b5080f35b5060609250620017a1565b9550955050505050346200126957505080f35b63b398979f60e01b8152fd5b8651634c9c8ce360e01b8152808501849052fd5b8751632a87526960e21b815280860191909152fd5b9091508481813d8311620012cf575b620012b9818362001562565b81010312620012cb575190386200116e565b8680fd5b503d620012ad565b855163703e46dd60e11b81528890fd5b9050817f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc54161415386200113f565b505034620001db5781600319360112620001db57905490516001600160a01b039091168152602090f35b90503462000209578260031936011262000209576200135e620016f7565b600080516020620052938339815191529081549060ff821615620013b0575060ff19169055513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a180f35b8351638dfc202b60e01b8152fd5b505034620001db5781600319360112620001db5760025490516001600160a01b039091168152602090f35b505034620001db5781600319360112620001db576020906001549051908152f35b505034620001db576020366003190112620001db576200142962001504565b62001433620016f7565b6001600160a01b03168083526008602052908220805460ff191660011790557fd1bba68c128cc3f427e5831b3c6f99f480b6efa6b9e80c757768f6124158cc3f8280a280f35b505034620001db5781600319360112620001db576020906007549051908152f35b505034620001db5781600319360112620001db5760035490516001600160a01b039091168152602090f35b8490843462000209576020366003190112620002095760209260ff91906001600160a01b03620014f462001504565b1681526008855220541615158152f35b600435906001600160a01b03821682036200151b57565b600080fd5b606435906001600160a01b03821682036200151b57565b67ffffffffffffffff81116200154c57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176200154c57604052565b67ffffffffffffffff81116200154c57601f01601f191660200190565b15620015aa57565b60405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b21033b7bb32b93737b960811b6044820152606490fd5b8183526020600583901b84018101939192906000818401855b8483106200160d575050505050505090565b90919293949596601f19808883030184528835601e19843603018112156200151b578301868101903567ffffffffffffffff81116200151b5780360382136200151b57838893601f83808796879660019a5286860137600085828601015201160101990193019301919594939290620015fb565b6001600160a01b03908116908115620016de576000805160206200527383398151915280546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b604051631e4fbdf760e01b815260006004820152602490fd5b60008051602062005273833981519152546001600160a01b031633036200171a57565b60405163118cdaa760e01b8152336004820152602490fd5b60ff6000805160206200529383398151915254166200174d57565b60405163d93c066560e01b8152600490fd5b60ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c16156200178f57565b604051631afcd79f60e31b8152600490fd5b90620017ca5750805115620017b857805190602001fd5b60405163d6bda27560e01b8152600490fd5b81511580620017ff575b620017dd575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b15620017d456fe608060405234620006105762002dac803803806200001d816200062a565b92833981019061012081830312620006105780516001600160401b0381116200061057810182601f8201121562000610578051926001600160401b0384116200037a578360051b91602080620000758186016200062a565b80978152019382010190828211620006105760208101935b8285106200057a578686620000a56020820162000650565b906040810151620000b96060830162000650565b91620000c86080820162000650565b9060a08101519160c082015194610100620000e660e0850162000650565b930151966001600160a01b038316156200056157620001058362000665565b6000805460ff60a01b191690556001805588516002116200051c576001600160a01b03811615620004d7576001600160a01b038216156200049f576001600160a01b03841615620004655784156200042057600280546001600160a01b031990811633179091556003805482166001600160a01b0393841617905560048054821693831693909317909255600580548316938216939093179092556006805490911692909116919091179055600755600855600955600a5560005b8151811015620003a65760208160051b830101516011805490680100000000000000008210156200037a5760018201808255821015620003905760009081526020902082519101916001600160401b0382116200037a578254600181811c911680156200036f575b60208210146200035957601f81116200030c575b50602090601f83116001146200029b57600194939291600091836200028f575b5050600019600383901b1c191690841b1790555b806000526012602052670de0b6b3a764000060406000205501620001c0565b0151905086806200025c565b90601f198316918460005260206000209260005b818110620002f3575091600196959492918388959310620002d9575b505050811b01905562000270565b015160001960f88460031b161c19169055868080620002cb565b92936020600181928786015181550195019301620002af565b836000526020600020601f840160051c810191602085106200034e575b601f0160051c01905b8181106200034157506200023c565b6000815560010162000332565b909150819062000329565b634e487b7160e01b600052602260045260246000fd5b90607f169062000228565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b62278d0042018042116200040a576020817fb78308b2eb98fa00faea36698f56c2389c9bd7c8e76f7c0f7725e33135d4809292600b55604051908152a1600554620003fa906001600160a01b031662000665565b6040516126ff9081620006ad8239f35b634e487b7160e01b600052601160045260246000fd5b60405162461bcd60e51b815260206004820152601b60248201527f496e76616c6964206c697175696469747920706172616d6574657200000000006044820152606490fd5b60405162461bcd60e51b815260206004820152601260248201527124b73b30b634b21029aaa9a2103a37b5b2b760711b6044820152606490fd5b60405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b2103932b837b93a32b960811b6044820152606490fd5b60405162461bcd60e51b815260206004820152601560248201527f496e76616c69642066656520726563697069656e7400000000000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152601d60248201527f4d7573742068617665206174206c656173742032206f7574636f6d65730000006044820152606490fd5b604051631e4fbdf760e01b815260006004820152602490fd5b84516001600160401b0381116200061057820184603f82011215620006105760208101516001600160401b0381116200061557620005c2601f8201601f19166020016200062a565b918183528660408383010111620006105760005b828110620005f9575050918160006020809581950101528152019401936200008d565b8060406020928401015182828701015201620005d6565b600080fd5b60246000634e487b7160e01b81526041600452fd5b6040519190601f01601f191682016001600160401b038111838210176200037a57604052565b51906001600160a01b03821682036200061057565b600080546001600160a01b039283166001600160a01b03198216811783559216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a356fe608060408181526004918236101561001657600080fd5b600092833560e01c918263010ec441146119285750816304f09b4a1461107357816309eef43e146118ea5781630c340a24146113b25781630d15fd77146118cb5781630ff352f5146117f05781631bd8db031461139357816323341a05146116bc5781632d844c491461155d5781633f4ba83a146114ef5781633f6fa655146114cb5781634020dffc1461142357816346904840146113fa5781634df7e3d0146113db5781634fc07d75146113b257816356f43352146113935781635a0e82901461135b5781635c975abb146113365781635fae63711461131b5781636399d03d146111fb57816370aa26871461102c578163715018a6146111a15781638456cb591461114257816385af5d3514610a42578163882636cb146111255781638948261d146110f45781638da5cb5b146110cc5781639236260b146110b157816397f03f1c146110925781639b34ae03146110735781639da0ae3e1461104b578163a0cd65521461102c578163a5bbe22b1461100e578163ad9914f814610fe6578163bee4f74614610fca578163c0d7865514610f20578163c13ebbe614610f01578163c45a015514610ed8578163c73c655e14610df9578163d3967a6b14610bd8578163d8ca24c114610b63578163d92f081014610ae9578163deb8d27814610aca578163e2ae552414610aa2578163e53dc68014610a61578163e62ff3eb14610a42578163e8f8cc4b146108b0578163ead1df17146106bd578163ec77537b146105f4578163ecbe2ad1146103cc578163eed2a14714610355578163f2fde38b146102ca57508063f39690e4146102a25763f887ea401461027757600080fd5b3461029e578160031936011261029e5760175490516001600160a01b039091168152602090f35b5080fd5b503461029e578160031936011261029e5760065490516001600160a01b039091168152602090f35b905034610351576020366003190112610351576102e561194c565b906102ee6121f7565b6001600160a01b0391821692831561033b57505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b905082346103c95760203660031901126103c957813560115481101561029e5761037e90611b2d565b9290926103b75783516103b390856103a18261039a8189611b7a565b03836119db565b51918291602083526020830190611967565b0390f35b634e487b7160e01b8252819052602490fd5b80fd5b8391503461029e576103dd36611ae9565b60175490936001600160a01b039392916103fa9085163314611ef5565b610402612404565b61041160ff6010541615611c37565b6011906104216011548714611e06565b610429611eb3565b90875b8781106105075750505050845b848110610483575061047d907fbef6f36ea5e6c97c4647317b776225bf8f182805a56048807f8c615bdca986ca94959651938493602085521695602084019161216d565b0390a280f35b8061049160019287856120ff565b3561049d575b01610439565b80875260126020908082526104c18a8a20546104ba858b896120ff565b3590612151565b90838a528252898920558585169081895260138082528a8a20848b5282526104f18b8b20546104ba868c8a6120ff565b928a52815289892090838a525288882055610497565b88610513828a886120ff565b3513156105a3576105258189876120ff565b356105308285611e9f565b5190600a918281029281840414901517156105915760648092041061055a57506001905b0161042c565b8a5162461bcd60e51b8152602081850152601460248201527354726164652073697a6520746f6f206c6172676560601b6044820152fd5b634e487b7160e01b8b5285845260248bfd5b80896105b26001938b896120ff565b351215610554576105ef6105d06105ca838c8a6120ff565b356120ee565b8989168c528b8d846020916013835283209252528c8c2054101561210f565b610554565b90503461035157826003193601126103515761060e6123e1565b6010549161061f60ff841615611c37565b600c5462093a8081018091116106aa5761063a90421161219e565b600d541561066f5750506001600e549182600f5560ff1916176010556000805160206126aa8339815191528280a26001805580f35b906020606492519162461bcd60e51b83528201526015602482015274139bc8191a5cdc1d5d195cc81cdd589b5a5d1d1959605a1b6044820152fd5b634e487b7160e01b855260118352602485fd5b919050346103515782600319360112610351576106d86123e1565b6106e660ff60105416611f4c565b33835260209060148252808420541561087c57600c5462093a8081018091116108695761071490421161219e565b33845260148252838282822082815491556016825260ff84842054166107ee575b600654845163a9059cbb60e01b8152338882015260248101929092529092839160449183916001600160a01b03165af19081156107e45785916107b7575b501561078157836001805580f35b5162461bcd60e51b8152918201526012602482015271109bdb99081c995d1d5c9b8819985a5b195960721b604482015260649150fd5b6107d79150833d85116107dd575b6107cf81836119db565b810190611fd1565b38610773565b503d6107c5565b82513d87823e3d90fd5b915050670de0b6b3a7640000808202828104821483151715610856578692859261084a61085193610845610830600f5492838a52601589528a8a205490611d78565b91600d549089526015885289892054906121ea565b611d1f565b0490611d90565b610735565b634e487b7160e01b875260118652602487fd5b634e487b7160e01b855260118452602485fd5b5162461bcd60e51b815291820152601060248201526f4e6f20626f6e6420746f20636c61696d60801b604482015260649150fd5b8284346103c9576108c036611ae9565b6017546001600160a01b03906108d99082163314611ef5565b6108e1612404565b6108f060ff6010541615611c37565b6108fd6011548314611e06565b61091861091361090e368587611a2b565b611e49565b6120ee565b94805b8381106109705760208789887f641f6e9d3fa562880c882ed09a661674636d2c6dc3c833c63383ad1bd2d8faaf89898961095f86519384938885528885019161216d565b94878984015216930390a251908152f35b8061097e60019286886120ff565b3561098a575b0161091b565b6109986105ca8287896120ff565b6001600160a01b03881660009081526013602052604090206109c8909183865260209283528b862054101561210f565b81845260128082526109e28b8620546104ba858a8c6120ff565b8386529082528a8520556001600160a01b03881660009081526013602052604090208285528152610a1b8a8520546104ba84898b6120ff565b6001600160a01b038916600090815260136020526040902090918386525289842055610984565b50503461029e578160031936011261029e57602090600c549051908152f35b50503461029e578060031936011261029e5760209181906001600160a01b03610a8861194c565b168152601384528181206024358252845220549051908152f35b9050346103515760203660031901126103515760209282913581526012845220549051908152f35b50503461029e578160031936011261029e57602090600e549051908152f35b83903461029e57602036600319011261029e5735610b1260018060a01b03600554163314611cc7565b6001601054610b2460ff821615611c37565b610b31600c544210611f8e565b610b3e6011548410611dc8565b60ff19161760105580600f5581600c556000805160206126aa8339815191528280a280f35b9050346103515760803660031901126103515780359067ffffffffffffffff8211610bd457610b9491369101611ab8565b6001600160a01b039360443592919085841684036103c95760643595861686036103c957509160209491610bcb9360243591611fe9565b90519015158152f35b8380fd5b9190503461035157602080600319360112610bd457823592610bf86123e1565b610c0760ff6010541615611c37565b610c146011548510611dc8565b3385526016825260ff8386205416610dc857600c5462093a808101809111610db557610c4290421115611f8e565b848260018060a01b03600654166064600a54875194859384926323b872dd60e01b8452338985015230602485015260448401525af1908115610dab578691610d8e575b5015610d565750907fde5c01453f40d10a9cdeaaa7f2b644609198dabb4cf1d17a1496d1d506e2346d8392600a5433875260148252808488205584875260158252610cd4848820918254611d90565b9055610ce4600a54600d54611d90565b600d5533865260168152828620805460ff191660011790558386526015815282862054600e5487528387205410610d4d575b600a5492519283523392a3337fa36cc2bebb74db33e9f88110a07ef56e1b31b24b4c4f51b54b1664266e29f45b8380a36001805580f35b83600e55610d16565b915162461bcd60e51b8152918201526014602482015273109bdb99081d1c985b9cd9995c8819985a5b195960621b6044820152606490fd5b610da59150833d85116107dd576107cf81836119db565b38610c85565b84513d88823e3d90fd5b634e487b7160e01b865260118252602486fd5b915162461bcd60e51b815291820152600d60248201526c105b1c9958591e481d9bdd1959609a1b6044820152606490fd5b9190503461035157602092836003193601126103c957610e1761194c565b6017546001600160a01b039190610e319083163314611ef5565b610e3f60ff60105416611f4c565b169081815260138552828120600f5490818352865283822054948515610ea15750828252601386528382209082528552828120557fe6c65465a8ee0479d6191a15bbbe0667ff4f68727bfefd04bdb6131b470029bb848351858152a251908152f35b845162461bcd60e51b815290810187905260116024820152704e6f2077696e6e696e672073686172657360781b6044820152606490fd5b50503461029e578160031936011261029e5760025490516001600160a01b039091168152602090f35b50503461029e578160031936011261029e57602090600b549051908152f35b90503461035157602036600319011261035157610f3b61194c565b610f436121f7565b6001600160a01b0316918215610f8e575050601780546001600160a01b031916821790557fc6b438e6a8a59579ce6a4406cbd203b740e0d47b458aae6596339bcd40c40d158280a280f35b906020606492519162461bcd60e51b83528201526016602482015275496e76616c696420726f75746572206164647265737360501b6044820152fd5b50503461029e578160031936011261029e5760209051600a8152f35b9050346103515782600319360112610351575490516001600160a01b03909116815260209150f35b50503461029e578160031936011261029e576020905162093a808152f35b50503461029e578160031936011261029e576020906008549051908152f35b9050346103515760203660031901126103515760209282913581526015845220549051908152f35b50503461029e578160031936011261029e57602090600f549051908152f35b50503461029e578160031936011261029e57602090600a549051908152f35b50503461029e578160031936011261029e5760209051308152f35b50503461029e578160031936011261029e57905490516001600160a01b039091168152602090f35b50503461029e578160031936011261029e576103b390611112611eb3565b90519182916020835260208301906119a7565b50503461029e5760209061113b61090e36611a79565b9051908152f35b50503461029e578160031936011261029e5760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258916111806121f7565b611188612404565b835460ff60a01b1916600160a01b17845551338152a180f35b83346103c957806003193601126103c9576111ba6121f7565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b91905034610351576020366003190112610351578154823592906001600160a01b031633036112cd576010549061123560ff831615611c37565b600b54421061129e57506020839260017fffac1500e5679b3ff6518aa340b377b1b544ffde8e2e1f3a786f8b1fe9f140de936112746011548710611dc8565b85600f5542600c5560ff19161760105551428152a26000805160206126aa8339815191528280a280f35b606490602084519162461bcd60e51b83528201526009602482015268546f6f206561726c7960b81b6044820152fd5b6020608492519162461bcd60e51b83528201526024808201527f4f6e6c79207265706f727465722063616e2063616c6c20746869732066756e636044820152633a34b7b760e11b6064820152fd5b50503461029e5760209061113b61133136611a79565b611d9d565b50503461029e578160031936011261029e5760ff6020925460a01c1690519015158152f35b50503461029e57602036600319011261029e5760209181906001600160a01b0361138361194c565b1681526014845220549051908152f35b50503461029e578160031936011261029e576020906009549051908152f35b50503461029e578160031936011261029e5760055490516001600160a01b039091168152602090f35b50503461029e578160031936011261029e576020906007549051908152f35b50503461029e578160031936011261029e5760035490516001600160a01b039091168152602090f35b919050346103515760203660031901126103515781359161144f60018060a01b03600554163314611cc7565b428311156114895750816020917fb78308b2eb98fa00faea36698f56c2389c9bd7c8e76f7c0f7725e33135d4809293600b5551908152a180f35b6020606492519162461bcd60e51b8352820152601a60248201527f446561646c696e65206d75737420626520696e206675747572650000000000006044820152fd5b50503461029e578160031936011261029e5760209060ff6010541690519015158152f35b9050346103515782600319360112610351576115096121f7565b82549060ff8260a01c161561154f575060ff60a01b19168255513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a180f35b8251638dfc202b60e01b8152fd5b905082346103c95760203660031901126103c9578135916011916115846011548510611c83565b61158c611eb3565b926007549361159d81518710611c83565b829683975b8251891015611623576115b58984611e9f565b51670de0b6b3a764000090818102918183041490151715611611576001916115fb6115e38a61160194611d78565b68056bc75e2d63100000808211611609575b50612425565b90611d90565b9801976115a2565b90508d6115f5565b634e487b7160e01b8652848752602486fd5b86856116308a8996611e9f565b5191670de0b6b3a764000092838102908082048514901517156116a9576116719161165a91611d78565b68056bc75e2d631000008082116116a15750612425565b82810292818404149015171561168e5760208461113b8585611d78565b634e487b7160e01b815260118552602490fd5b9050876115f5565b634e487b7160e01b835260118752602483fd5b8284346103c957806003193601126103c9576116d6611eb3565b9160075460ff60105416600f5491601154956116f187611a13565b956116fe865197886119db565b878752602096602081019889601184527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6884915b8383106117be575050505086519760a089019160a08a525180925260c0890160c08360051b8b01019a93905b8382106117915750505050508661177d918780990360208901526119a7565b938501521515606084015260808301520390f35b909192939a83806117af6001938f8f60bf1990830301875251611967565b9d01920192019093929161175e565b60018c81928d9e97989e516117de816117d78189611b7a565b03826119db565b8152019201920191909a94939a611732565b8391503461029e578160031936011261029e576010549061181460ff831615611c37565b600b5442111561188857507fe4d6efcb12aa89dc35692182a18a22bcfd2c5d86dd221420209b7287daab0888602060019394600d54151560001461187f57600e549485945b60ff19161760105583600f5551338152a26000805160206126aa8339815191528280a280f35b85948594611859565b606490602085519162461bcd60e51b8352820152601c60248201527f5265706f7274657220646561646c696e65206e6f7420706173736564000000006044820152fd5b50503461029e578160031936011261029e57602090600d549051908152f35b50503461029e57602036600319011261029e5760209160ff9082906001600160a01b0361191561194c565b1681526016855220541690519015158152f35b849134610351578260031936011261035157546001600160a01b0316815260209150f35b600435906001600160a01b038216820361196257565b600080fd5b919082519283825260005b848110611993575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201611972565b90815180825260208080930193019160005b8281106119c7575050505090565b8351855293810193928101926001016119b9565b90601f8019910116810190811067ffffffffffffffff8211176119fd57604052565b634e487b7160e01b600052604160045260246000fd5b67ffffffffffffffff81116119fd5760051b60200190565b9291611a3682611a13565b91611a4460405193846119db565b829481845260208094019160051b810192831161196257905b828210611a6a5750505050565b81358152908301908301611a5d565b6020600319820112611962576004359067ffffffffffffffff8211611962578060238301121561196257816024611ab593600401359101611a2b565b90565b9181601f840112156119625782359167ffffffffffffffff8311611962576020808501948460051b01011161196257565b906040600319830112611962576004356001600160a01b038116810361196257916024359067ffffffffffffffff821161196257611b2991600401611ab8565b9091565b601154811015611b645760116000527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c680190600090565b634e487b7160e01b600052603260045260246000fd5b80546000939260018083169383821c938515611c2d575b6020958686108114611c1757858552908115611bf85750600114611bb7575b5050505050565b90939495506000929192528360002092846000945b838610611be457505050500101903880808080611bb0565b805485870183015294019385908201611bcc565b60ff19168685015250505090151560051b010191503880808080611bb0565b634e487b7160e01b600052602260045260246000fd5b93607f1693611b91565b15611c3e57565b60405162461bcd60e51b815260206004820152601760248201527f4d61726b657420616c7265616479207265736f6c7665640000000000000000006044820152606490fd5b15611c8a57565b60405162461bcd60e51b8152602060048201526015602482015274092dcecc2d8d2c840deeae8c6dedaca40d2dcc8caf605b1b6044820152606490fd5b15611cce57565b60405162461bcd60e51b8152602060048201526024808201527f4f6e6c7920676f7665726e6f722063616e2063616c6c20746869732066756e636044820152633a34b7b760e11b6064820152608490fd5b81810292918115918404141715611d3257565b634e487b7160e01b600052601160045260246000fd5b8015611d62576ec097ce7bc90715b34b9f10000000000490565b634e487b7160e01b600052601260045260246000fd5b8115611d62570490565b9060018201809211611d3257565b91908201809211611d3257565b611da690611e49565b6000811315611dc257611ab59061271061084a60095483611d1f565b50600090565b15611dcf57565b60405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206f7574636f6d6560881b6044820152606490fd5b15611e0d57565b60405162461bcd60e51b8152602060048201526014602482015273092dcecc2d8d2c840c2e4e4c2f240d8cadccee8d60631b6044820152606490fd5b611ab590611e5b815160115414611e06565b611e63611eb3565b9060075491612223565b90611e7782611a13565b611e8460405191826119db565b8281528092611e95601f1991611a13565b0190602036910137565b8051821015611b645760209160051b010190565b60115490611ec082611e6d565b60009260005b818110611ed4575090925050565b80600191865260126020526040862054611eee8286611e9f565b5201611ec6565b15611efc57565b60405162461bcd60e51b815260206004820152602260248201527f4f6e6c7920726f757465722063616e2063616c6c20746869732066756e63746960448201526137b760f11b6064820152608490fd5b15611f5357565b60405162461bcd60e51b815260206004820152601360248201527213585c9ad95d081b9bdd081c995cdbdb1d9959606a1b6044820152606490fd5b15611f9557565b60405162461bcd60e51b8152602060048201526014602482015273111a5cdc1d5d19481c195c9a5bd908195b99195960621b6044820152606490fd5b90816020910312611962575180151581036119625790565b9291909360115485036120e4576004546001600160a01b0393908416908416036120e45760059280600554169116036120d357600854036120dc5760005b8381106120375750505050600190565b80821b830135601e1984360301811215611962578301803567ffffffffffffffff8111611962576020808301823603811361196257604093845161208484601f19601f88011601826119db565b8481528381019184863692010111611962576000848661039a976120c196863783010152519020936120b586611b2d565b50905193848092611b7a565b8151910120036120d357600101612027565b50505050600090565b505050600090565b5050505050600090565b600160ff1b8114611d325760000390565b9190811015611b645760051b0190565b1561211657565b60405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742073686172657360681b6044820152606490fd5b91909160008382019384129112908015821691151617611d3257565b91908082526020809201929160005b82811061218a575050505090565b83358552938101939281019260010161217c565b156121a557565b60405162461bcd60e51b815260206004820152601860248201527f4469737075746520706572696f64206e6f7420656e64656400000000000000006044820152606490fd5b91908203918211611d3257565b6000546001600160a01b0316330361220b57565b60405163118cdaa760e01b8152336004820152602490fd5b929083518151036123a45783511561237057821561232b576122458385612554565b61224f8551611e6d565b9260009160005b87518110156122fd57808461226d60019388611e9f565b51126122a457612292612280828b611e9f565b5161228b8389611e9f565b5190611d90565b61229c8289611e9f565b525b01612256565b6122cc6122b1828b611e9f565b516122c56122bf848a611e9f565b516120ee565b111561210f565b6122ed6122d9828b611e9f565b516122e76122bf848a611e9f565b906121ea565b6122f78289611e9f565b5261229e565b5094925094505061230d91612554565b9080821061231e57611ab5916121ea565b611ab591610913916121ea565b60405162461bcd60e51b815260206004820152601b60248201527f496e76616c6964206c697175696469747920706172616d6574657200000000006044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b456d7074792061727261797360a01b6044820152606490fd5b60405162461bcd60e51b8152602060048201526015602482015274082e4e4c2f240d8cadccee8d040dad2e6dac2e8c6d605b1b6044820152606490fd5b6002600154146123f2576002600155565b604051633ee5aeb560e01b8152600490fd5b60ff60005460a01c1661241357565b60405163d93c066560e01b8152600490fd5b80156125475768056bc75e2d63100000811161254057670de0b6b3a7640000808281020490818303611d3257818101809111611d325782808080949361246c828096611d1f565b671bc16d674ec800009004908161248291611d90565b9161248c91611d1f565b6729a2241af62c0000900490816124a291611d90565b916124ac91611d1f565b673782dace9d900000900490816124c291611d90565b916124cc91611d1f565b674563918244f40000900490816124e291611d90565b916124ec91611d1f565b6753444835ec5800009004908161250291611d90565b9161250c91611d1f565b676124fee993bc00009004908161252291611d90565b9161252c91611d1f565b676f05b59d3b2000009004611ab591611d90565b5060001990565b50670de0b6b3a764000090565b909190600090815b81518310156125c45761256f8383611e9f565b51670de0b6b3a764000090818102918183041490151715611d32576001916115fb61259d886125b494611d78565b68056bc75e2d631000008082116125bc5750612425565b92019161255c565b9050386115f5565b6125e59250670de0b6b3a7640000939491506125df906125e9565b90611d1f565b0490565b66038d7ea4c680008110611dc257670de0b6b3a76400008082146126a257811061268757600068056bc75e2d63100000916000905b6020821061263b575050611ab59161263591611d90565b60011c90565b909161264a6126358583611d90565b9061265482612425565b8381101561266a575050600190925b019061261e565b8391949550116000146126805760019093612663565b9250505090565b61269361269891611d48565b6125e9565b611ab59019611d82565b505060009056fe93608ecbcf057462da63f5aef413ce7f78c5e1b3bb51859d77a40845ece2bfc3a2646970667358221220f6f1597504e7f62bb1313dab537a8dc99cbe74aca51d9c6df3b50e9294d1693f64736f6c6343000816003360803461012d57601f610cbd38819003918201601f19168301916001600160401b0383118484101761013257808492604094855283398101031261012d57610052602061004b83610148565b9201610148565b3315610114576000549060018060a01b03918260018060a01b031994338684161760005560405192823391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a360018055169081156100d2575083600454161760045516906005541617600555604051610b60908161015d8239f35b62461bcd60e51b815260206004820152601560248201527f496e76616c696420746f6b656e206164647265737300000000000000000000006044820152606490fd5b604051631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361012d5756fe6040608081526004908136101561001557600080fd5b600091823560e01c80630b7e9c44146107d6578063647096ea1461067b5780636a9caa531461016a578063715018a61461061e5780638da5cb5b146105f657806393e30633146104f5578063adaf1c43146104b7578063c45a01551461048e578063d02ab95314610260578063db913236146101a6578063e80b5b5f1461016a578063f2fde38b146100da5763f39690e4146100b057600080fd5b346100d657826003193601126100d6575490516001600160a01b03909116815260209150f35b8280fd5b50346100d65760203660031901126100d6576100f46108ed565b906100fd610afe565b6001600160a01b03918216928315610154575050600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b5050346101a25760203660031901126101a25760209181906001600160a01b036101926108ed565b1681526002845220549051908152f35b5080fd5b5090346100d65760203660031901126100d6576101c16108ed565b6005546001600160a01b0391906101db9083163314610a83565b1691828452600360205260ff82852054161561022b575081835260036020528220805460ff191690557f59d7b1e52008dc342c9421dadfc773114b914a65682a4e4b53cf60a970df0d778280a280f35b6020606492519162461bcd60e51b8352820152601060248201526f13585c9ad95d081b9bdd08199bdd5b9960821b6044820152fd5b5090346100d65760603660031901126100d65761027b6108ed565b9160249067ffffffffffffffff823581811161048a5761029e9036908401610908565b90956102a8610adb565b60018060a01b03809116908189526020600381526102cb60ff898c205416610939565b8751635fae637160e01b8152868101829052918183806102ee8b8201898f610a2d565b0381875afa928315610414578b93610457575b50604435831161041e57818b9188541660648b51809481936323b872dd60e01b8352338d8401528d30908401528860448401525af19081156104145760029291610352918d916103e7575b506109c6565b838b525286892080549182018092116103d55755879190803b156100d65761039097838851809a8195829463ecbe2ad160e01b8452338b8501610a5e565b03925af180156103cb576103a7575b856001805580f35b84116103ba57505052388080808061039f565b634e487b7160e01b85526041905283fd5b84513d88823e3d90fd5b634e487b7160e01b8a5260118652868afd5b6104079150833d851161040d575b6103ff8183610976565b8101906109ae565b3861034c565b503d6103f5565b89513d8d823e3d90fd5b885162461bcd60e51b81528088018390526014818a015273436f73742065786365656473206d6178696d756d60601b6044820152606490fd5b9092508181813d8311610483575b61046f8183610976565b8101031261047f57519138610301565b8a80fd5b503d610465565b8680fd5b5050346101a257816003193601126101a25760055490516001600160a01b039091168152602090f35b5050346101a25760203660031901126101a25760209160ff9082906001600160a01b036104e26108ed565b1681526003855220541690519015158152f35b5090346100d65760203660031901126100d6576105106108ed565b6005546001600160a01b03919061052a9083163314610a83565b169182156105bb57828452600360205260ff8285205416610582575081835260036020528220805460ff191660011790557fbc600b1f03d316c479b49930c28e328809316458d5b5dacbb7419df5f6f896478280a280f35b6020606492519162461bcd60e51b8352820152601460248201527313585c9ad95d08185b1c9958591e48185919195960621b6044820152fd5b6020606492519162461bcd60e51b83528201526016602482015275496e76616c6964206d61726b6574206164647265737360501b6044820152fd5b5050346101a257816003193601126101a257905490516001600160a01b039091168152602090f35b8334610678578060031936011261067857610637610afe565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b5090346100d657806003193601126100d6576106956108ed565b916024359267ffffffffffffffff84116107d2576106b96107049436908401610908565b9290916106c4610adb565b60018060a01b03809116928388526020948591600383526106ea60ff898c205416610939565b875163e8f8cc4b60e01b8152988992839233888501610a5e565b03818a875af19586156107c8578796610797575b508154855163a9059cbb60e01b815233938101938452602084018890529285928492169082908a9082906040015b03925af19081156103cb579161076a610777959492600294899161078057506109c6565b8652528320918254610a0a565b90556001805580f35b6104079150843d861161040d576103ff8183610976565b909195508381813d83116107c1575b6107b08183610976565b8101031261048a5751949083610718565b503d6107a6565b85513d89823e3d90fd5b8480fd5b5090346100d6576020806003193601126108e9576107f26108ed565b926107fb610adb565b6001600160a01b0393841680865260038352838620549091906108209060ff16610939565b835163639e32af60e11b815233828201529483866024818a875af19586156107c85787966108ba575b508515610881578154855163a9059cbb60e01b815233938101938452602084018890529285928492169082908a908290604001610746565b845162461bcd60e51b815280830185905260136024820152724e6f207061796f757420617661696c61626c6560681b6044820152606490fd5b9095508381813d83116108e2575b6108d28183610976565b8101031261048a57519438610849565b503d6108c8565b8380fd5b600435906001600160a01b038216820361090357565b600080fd5b9181601f840112156109035782359167ffffffffffffffff8311610903576020808501948460051b01011161090357565b1561094057565b60405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a59081b585c9ad95d60921b6044820152606490fd5b90601f8019910116810190811067ffffffffffffffff82111761099857604052565b634e487b7160e01b600052604160045260246000fd5b90816020910312610903575180151581036109035790565b156109cd57565b60405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606490fd5b91908203918211610a1757565b634e487b7160e01b600052601160045260246000fd5b91908082526020809201929160005b828110610a4a575050505090565b833585529381019392810192600101610a3c565b6001600160a01b039091168152604060208201819052610a8093910191610a2d565b90565b15610a8a57565b60405162461bcd60e51b815260206004820152602360248201527f4f6e6c7920666163746f72792063616e2063616c6c20746869732066756e637460448201526234b7b760e91b6064820152608490fd5b600260015414610aec576002600155565b604051633ee5aeb560e01b8152600490fd5b6000546001600160a01b03163303610b1257565b60405163118cdaa760e01b8152336004820152602490fdfea26469706673582212208a26bd918666df2a02ffc78c452cb7a53877caf562a6fd95e8ddb383f82172aa64736f6c634300081600339016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300cd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f03300a26469706673582212207b5ee49fb2c69b612a5e3aabd6e0024e3f2a45c757aa230435f3b21a2b1dc89564736f6c63430008160033
Deployed Bytecode
0x60806040818152600491823610156200001757600080fd5b600092833560e01c91826306c933d814620014c5575081630c340a24146200149a5781631103f315146200147957816329975b43146200140a5781632ef1bdfa14620013e95781632f1ac04a1462000a9c57816339cfc38614620013be5781633f4ba83a14620013405781634690484014620013165781634f1ef286146200108c57816352d1902d1462001010578163530cd5ab1462000fa457816356f433521462000f835781635c975abb1462000f4f57816366f13ae41462000e875781636ed71ede1462000e66578163715018a61462000df75781637ba732671462000d415781638456cb591462000cd25781638da5cb5b1462000c995781639cb120c41462000c575781639f37022a1462000c05578163ad3cb1cc1462000b61578163b0d54bcf1462000ad1578163b1283e771462000a9c578163c42cf5351462000a1e578163c851cc32146200096d578163d1870db91462000603578163e9d8a6ab1462000266578163ebc38ab01462000245578163f2fde38b146200020d578163f39690e414620001df575063f887ea4014620001b257600080fd5b34620001db5781600319360112620001db57600c5490516001600160a01b039091168152602090f35b5080fd5b90503462000209578260031936011262000209575490516001600160a01b03909116815260209150f35b8280fd5b83346200024257602036600319011262000242576200023f6200022f62001504565b62000239620016f7565b62001681565b80f35b80fd5b505034620001db5781600319360112620001db576020906006549051908152f35b838334620001db5760a0366003190112620001db5767ffffffffffffffff8335818111620005ff5736602382011215620005ff5780850135828111620005fb576024808301928136918460051b010111620005f757620002c562001520565b620002cf62001732565b3387526020976008895260ff87892054161562000507575b60018060a01b0395868954169087600354169360055489855416918b5194612dac8087019587871090871117620004f5578f94928e889795938f938f8f6200033e926200180a8d39610120808b528a0191620015e2565b978701528b35908601521697886060850152608084015260843560a084015260c083015260e0820152610100604435910152039089f08015620004eb5786169786600c5416893b15620001db57885163c0d7865560e01b81528381019190915281818681838e5af18015620004e157620004cf575b509086600c5416803b156200020957828091868c8c5194859384926393e3063360e01b8452888401525af18015620004c557908391620004ad575b5050600b549060001982146200049b575091878996949260017f1b179d22cf76bd96582f4407459d768c37c7fb000a78cb008159d61f1c7175ad97950180600b55815260098c52818120886bffffffffffffffffffffffff60a01b825416179055878152600a8c5220600160ff19825416179055600b54966003541690620004838951958695608087526080870191620015e2565b92358b8501528884015260608301520390a351908152f35b634e487b7160e01b8352601190528382fd5b620004b89062001537565b620001db57818b620003ee565b89513d85823e3d90fd5b620004da9062001537565b8a620003b3565b89513d84823e3d90fd5b87513d8a823e3d90fd5b634e487b7160e01b8f5260418852898ffd5b8054885460015489516323b872dd60e01b815233818601526001600160a01b03928316878201526044810191909152918b91839160649183918e91165af1908115620005ed578991620005ac575b50620002e757865162461bcd60e51b81529081018990526026818401527f4661696c656420746f207472616e73666572206d61726b6574206372656174696044820152656f6e2066656560d01b6064820152608490fd5b90508981813d8311620005e5575b620005c6818362001562565b81010312620005e157518015158103620005e1578a62000555565b8880fd5b503d620005ba565b88513d8b823e3d90fd5b8580fd5b8480fd5b8380fd5b905034620002095760c036600319011262000209576200062262001504565b6024356001600160a01b038181169491859003620005f7576200064462001520565b936084359482861680960362000969577ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a009586549160ff83871c16159667ffffffffffffffff938481168015908162000960575b600114908162000955575b1590816200094b575b506200093b5767ffffffffffffffff1981166001178a55869190896200091b575b50620006d86200175f565b620006e26200175f565b60008051602062005293833981519152805460ff19169055620007046200175f565b6200070e6200175f565b620007198162001681565b620007236200175f565b169062000732821515620015a2565b8915620008e05785169081156200089d57821562000865578a600b556bffffffffffffffffffffffff60a01b998a8c5416178b55896003541617600355604435600155886002541617600255808884541617835560a4356005556103846006556064600755845192610cbd9081850193858510908511176200085257509183918693620045b68439815230602082015203019087f080156200084857168094600c541617600c5551927f8d7aabbc0caa3d9f60ad533535e9852ab0cb0efeb5d93c460244209713e7589d8580a262000808578280f35b805468ff000000000000000019169055600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a138808280f35b82513d88823e3d90fd5b634e487b7160e01b8b526041905260248afd5b865162461bcd60e51b8152602081870152601260248201527124b73b30b634b21029aaa9a2103a37b5b2b760711b6044820152606490fd5b865162461bcd60e51b8152602081870152601d60248201527f496e76616c6964206d61726b657420696d706c656d656e746174696f6e0000006044820152606490fd5b865162461bcd60e51b81526020818701526015602482015274125b9d985b1a5908199959481c9958da5c1a595b9d605a1b6044820152606490fd5b68ffffffffffffffffff191668010000000000000001178a5538620006cd565b875163f92ee8a960e01b81528690fd5b90501538620006ac565b303b159150620006a3565b8a915062000698565b8780fd5b9050346200020957602036600319011262000209576200098c62001504565b62000996620016f7565b6001600160a01b0316918215620009e2575050600c80546001600160a01b031916821790557f7aed1d3e8155a07ccf395e44ea3109a0e2d6c9b29bbbe9f142d9790596f4dc808280a280f35b906020606492519162461bcd60e51b83528201526016602482015275496e76616c696420726f75746572206164647265737360501b6044820152fd5b505034620001db576020366003190112620001db5760207f1cbb37f5a02c38ab13773cb770fae505cce417a4d81560117389e3a9f7e001f29162000a6162001504565b62000a6b620016f7565b6001600160a01b03169062000a82821515620015a2565b600380546001600160a01b0319168317905551908152a180f35b90503462000209576020366003190112620002095735825260096020908152918190205490516001600160a01b039091168152f35b9190503462000209576020366003190112620002095781359162000af4620016f7565b6107d0831162000b305750816020917f8dac05368d9e10fc43395ddcbdcae6457d0b4c159bc464504c1b386aed79be129360055551908152a180f35b6020606492519162461bcd60e51b8352820152600c60248201526b08ccaca40e8dede40d0d2ced60a31b6044820152fd5b90503462000209578260031936011262000209578151908282019082821067ffffffffffffffff83111762000bf25750825260058152602090640352e302e360dc1b6020820152825193849260208452825192836020860152825b84811062000bdb57505050828201840152601f01601f19168101030190f35b818101830151888201880152879550820162000bbc565b634e487b7160e01b855260419052602484fd5b9050346200020957602036600319011262000209577f583934e5b9be5235b40454ddbb9f61b157293eafefaa7b988cff6fd79f2ca43e91602091359062000c4b620016f7565b8160015551908152a180f35b505034620001db576020366003190112620001db5760209160ff9082906001600160a01b0362000c8662001504565b168152600a855220541690519015158152f35b505034620001db5781600319360112620001db57600080516020620052738339815191525490516001600160a01b039091168152602090f35b505034620001db5781600319360112620001db5760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2589162000d14620016f7565b62000d1e62001732565b60008051602062005293833981519152805460ff1916600117905551338152a180f35b9190503462000209576020366003190112620002095762000d6162001504565b62000d6b620016f7565b6001600160a01b031691821562000dbc5750600280546001600160a01b03191683179055519081527f2f8d421b6e2d75bbf3d3d560eed8a5c39e6ccdc4c00d72195885d91a38a4063a90602090a180f35b6020606492519162461bcd60e51b8352820152601660248201527524b73b30b634b21034b6b83632b6b2b73a30ba34b7b760511b6044820152fd5b8334620002425780600319360112620002425762000e14620016f7565b6000805160206200527383398151915280546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b505034620001db5781600319360112620001db57602090600b549051908152f35b838334620001db5780600319360112620001db5782356024359362000eab620016f7565b84820180831162000f3c576005540362000ef957507ffabf709ddcab6908663bc153944d0c2f54570ba46d078aecb046e384610874d49293816006558060075582519182526020820152a180f35b606490602084519162461bcd60e51b8352820152601e60248201527f536861726573206d7573742073756d20746f2074726164696e672066656500006044820152fd5b634e487b7160e01b855260118252602485fd5b505034620001db5781600319360112620001db5760209060ff60008051602062005293833981519152541690519015158152f35b505034620001db5781600319360112620001db576020906005549051908152f35b505034620001db576020366003190112620001db5762000fc362001504565b62000fcd620016f7565b6001600160a01b03168083526008602052908220805460ff191690557ff1abf01a1043b7c244d128e8595cf0c1d10743b022b03a02dffd8ca3bf729f5a8280a280f35b8284346200024257806003193601126200024257507f0000000000000000000000006bf1479164765b7d78d22627f57323ecc9bd2fc66001600160a01b031630036200107f57602090517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8152f35b5163703e46dd60e11b8152fd5b918091506003193601126200020957620010a562001504565b90602493843567ffffffffffffffff8111620001db5736602382011215620001db5780850135620010d68162001585565b94620010e58551968762001562565b81865260209182870193368a8383010111620005f7578186928b8693018737880101526001600160a01b037f0000000000000000000000006bf1479164765b7d78d22627f57323ecc9bd2fc68116308114908115620012e7575b50620012d7576200114f620016f7565b81169585516352d1902d60e01b815283818a818b5afa8691816200129e575b506200118b575050505050505191634c9c8ce360e01b8352820152fd5b9088888894938c7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc91828103620012895750853b1562001275575080546001600160a01b031916821790558451889392917fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b8580a282511562001256575050620012479582915190845af4913d156200124b573d620012386200122e8262001585565b9251928362001562565b81528581943d92013e620017a1565b5080f35b5060609250620017a1565b9550955050505050346200126957505080f35b63b398979f60e01b8152fd5b8651634c9c8ce360e01b8152808501849052fd5b8751632a87526960e21b815280860191909152fd5b9091508481813d8311620012cf575b620012b9818362001562565b81010312620012cb575190386200116e565b8680fd5b503d620012ad565b855163703e46dd60e11b81528890fd5b9050817f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc54161415386200113f565b505034620001db5781600319360112620001db57905490516001600160a01b039091168152602090f35b90503462000209578260031936011262000209576200135e620016f7565b600080516020620052938339815191529081549060ff821615620013b0575060ff19169055513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a180f35b8351638dfc202b60e01b8152fd5b505034620001db5781600319360112620001db5760025490516001600160a01b039091168152602090f35b505034620001db5781600319360112620001db576020906001549051908152f35b505034620001db576020366003190112620001db576200142962001504565b62001433620016f7565b6001600160a01b03168083526008602052908220805460ff191660011790557fd1bba68c128cc3f427e5831b3c6f99f480b6efa6b9e80c757768f6124158cc3f8280a280f35b505034620001db5781600319360112620001db576020906007549051908152f35b505034620001db5781600319360112620001db5760035490516001600160a01b039091168152602090f35b8490843462000209576020366003190112620002095760209260ff91906001600160a01b03620014f462001504565b1681526008855220541615158152f35b600435906001600160a01b03821682036200151b57565b600080fd5b606435906001600160a01b03821682036200151b57565b67ffffffffffffffff81116200154c57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176200154c57604052565b67ffffffffffffffff81116200154c57601f01601f191660200190565b15620015aa57565b60405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b21033b7bb32b93737b960811b6044820152606490fd5b8183526020600583901b84018101939192906000818401855b8483106200160d575050505050505090565b90919293949596601f19808883030184528835601e19843603018112156200151b578301868101903567ffffffffffffffff81116200151b5780360382136200151b57838893601f83808796879660019a5286860137600085828601015201160101990193019301919594939290620015fb565b6001600160a01b03908116908115620016de576000805160206200527383398151915280546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b604051631e4fbdf760e01b815260006004820152602490fd5b60008051602062005273833981519152546001600160a01b031633036200171a57565b60405163118cdaa760e01b8152336004820152602490fd5b60ff6000805160206200529383398151915254166200174d57565b60405163d93c066560e01b8152600490fd5b60ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c16156200178f57565b604051631afcd79f60e31b8152600490fd5b90620017ca5750805115620017b857805190602001fd5b60405163d6bda27560e01b8152600490fd5b81511580620017ff575b620017dd575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b15620017d456fe608060405234620006105762002dac803803806200001d816200062a565b92833981019061012081830312620006105780516001600160401b0381116200061057810182601f8201121562000610578051926001600160401b0384116200037a578360051b91602080620000758186016200062a565b80978152019382010190828211620006105760208101935b8285106200057a578686620000a56020820162000650565b906040810151620000b96060830162000650565b91620000c86080820162000650565b9060a08101519160c082015194610100620000e660e0850162000650565b930151966001600160a01b038316156200056157620001058362000665565b6000805460ff60a01b191690556001805588516002116200051c576001600160a01b03811615620004d7576001600160a01b038216156200049f576001600160a01b03841615620004655784156200042057600280546001600160a01b031990811633179091556003805482166001600160a01b0393841617905560048054821693831693909317909255600580548316938216939093179092556006805490911692909116919091179055600755600855600955600a5560005b8151811015620003a65760208160051b830101516011805490680100000000000000008210156200037a5760018201808255821015620003905760009081526020902082519101916001600160401b0382116200037a578254600181811c911680156200036f575b60208210146200035957601f81116200030c575b50602090601f83116001146200029b57600194939291600091836200028f575b5050600019600383901b1c191690841b1790555b806000526012602052670de0b6b3a764000060406000205501620001c0565b0151905086806200025c565b90601f198316918460005260206000209260005b818110620002f3575091600196959492918388959310620002d9575b505050811b01905562000270565b015160001960f88460031b161c19169055868080620002cb565b92936020600181928786015181550195019301620002af565b836000526020600020601f840160051c810191602085106200034e575b601f0160051c01905b8181106200034157506200023c565b6000815560010162000332565b909150819062000329565b634e487b7160e01b600052602260045260246000fd5b90607f169062000228565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b62278d0042018042116200040a576020817fb78308b2eb98fa00faea36698f56c2389c9bd7c8e76f7c0f7725e33135d4809292600b55604051908152a1600554620003fa906001600160a01b031662000665565b6040516126ff9081620006ad8239f35b634e487b7160e01b600052601160045260246000fd5b60405162461bcd60e51b815260206004820152601b60248201527f496e76616c6964206c697175696469747920706172616d6574657200000000006044820152606490fd5b60405162461bcd60e51b815260206004820152601260248201527124b73b30b634b21029aaa9a2103a37b5b2b760711b6044820152606490fd5b60405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b2103932b837b93a32b960811b6044820152606490fd5b60405162461bcd60e51b815260206004820152601560248201527f496e76616c69642066656520726563697069656e7400000000000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152601d60248201527f4d7573742068617665206174206c656173742032206f7574636f6d65730000006044820152606490fd5b604051631e4fbdf760e01b815260006004820152602490fd5b84516001600160401b0381116200061057820184603f82011215620006105760208101516001600160401b0381116200061557620005c2601f8201601f19166020016200062a565b918183528660408383010111620006105760005b828110620005f9575050918160006020809581950101528152019401936200008d565b8060406020928401015182828701015201620005d6565b600080fd5b60246000634e487b7160e01b81526041600452fd5b6040519190601f01601f191682016001600160401b038111838210176200037a57604052565b51906001600160a01b03821682036200061057565b600080546001600160a01b039283166001600160a01b03198216811783559216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a356fe608060408181526004918236101561001657600080fd5b600092833560e01c918263010ec441146119285750816304f09b4a1461107357816309eef43e146118ea5781630c340a24146113b25781630d15fd77146118cb5781630ff352f5146117f05781631bd8db031461139357816323341a05146116bc5781632d844c491461155d5781633f4ba83a146114ef5781633f6fa655146114cb5781634020dffc1461142357816346904840146113fa5781634df7e3d0146113db5781634fc07d75146113b257816356f43352146113935781635a0e82901461135b5781635c975abb146113365781635fae63711461131b5781636399d03d146111fb57816370aa26871461102c578163715018a6146111a15781638456cb591461114257816385af5d3514610a42578163882636cb146111255781638948261d146110f45781638da5cb5b146110cc5781639236260b146110b157816397f03f1c146110925781639b34ae03146110735781639da0ae3e1461104b578163a0cd65521461102c578163a5bbe22b1461100e578163ad9914f814610fe6578163bee4f74614610fca578163c0d7865514610f20578163c13ebbe614610f01578163c45a015514610ed8578163c73c655e14610df9578163d3967a6b14610bd8578163d8ca24c114610b63578163d92f081014610ae9578163deb8d27814610aca578163e2ae552414610aa2578163e53dc68014610a61578163e62ff3eb14610a42578163e8f8cc4b146108b0578163ead1df17146106bd578163ec77537b146105f4578163ecbe2ad1146103cc578163eed2a14714610355578163f2fde38b146102ca57508063f39690e4146102a25763f887ea401461027757600080fd5b3461029e578160031936011261029e5760175490516001600160a01b039091168152602090f35b5080fd5b503461029e578160031936011261029e5760065490516001600160a01b039091168152602090f35b905034610351576020366003190112610351576102e561194c565b906102ee6121f7565b6001600160a01b0391821692831561033b57505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b905082346103c95760203660031901126103c957813560115481101561029e5761037e90611b2d565b9290926103b75783516103b390856103a18261039a8189611b7a565b03836119db565b51918291602083526020830190611967565b0390f35b634e487b7160e01b8252819052602490fd5b80fd5b8391503461029e576103dd36611ae9565b60175490936001600160a01b039392916103fa9085163314611ef5565b610402612404565b61041160ff6010541615611c37565b6011906104216011548714611e06565b610429611eb3565b90875b8781106105075750505050845b848110610483575061047d907fbef6f36ea5e6c97c4647317b776225bf8f182805a56048807f8c615bdca986ca94959651938493602085521695602084019161216d565b0390a280f35b8061049160019287856120ff565b3561049d575b01610439565b80875260126020908082526104c18a8a20546104ba858b896120ff565b3590612151565b90838a528252898920558585169081895260138082528a8a20848b5282526104f18b8b20546104ba868c8a6120ff565b928a52815289892090838a525288882055610497565b88610513828a886120ff565b3513156105a3576105258189876120ff565b356105308285611e9f565b5190600a918281029281840414901517156105915760648092041061055a57506001905b0161042c565b8a5162461bcd60e51b8152602081850152601460248201527354726164652073697a6520746f6f206c6172676560601b6044820152fd5b634e487b7160e01b8b5285845260248bfd5b80896105b26001938b896120ff565b351215610554576105ef6105d06105ca838c8a6120ff565b356120ee565b8989168c528b8d846020916013835283209252528c8c2054101561210f565b610554565b90503461035157826003193601126103515761060e6123e1565b6010549161061f60ff841615611c37565b600c5462093a8081018091116106aa5761063a90421161219e565b600d541561066f5750506001600e549182600f5560ff1916176010556000805160206126aa8339815191528280a26001805580f35b906020606492519162461bcd60e51b83528201526015602482015274139bc8191a5cdc1d5d195cc81cdd589b5a5d1d1959605a1b6044820152fd5b634e487b7160e01b855260118352602485fd5b919050346103515782600319360112610351576106d86123e1565b6106e660ff60105416611f4c565b33835260209060148252808420541561087c57600c5462093a8081018091116108695761071490421161219e565b33845260148252838282822082815491556016825260ff84842054166107ee575b600654845163a9059cbb60e01b8152338882015260248101929092529092839160449183916001600160a01b03165af19081156107e45785916107b7575b501561078157836001805580f35b5162461bcd60e51b8152918201526012602482015271109bdb99081c995d1d5c9b8819985a5b195960721b604482015260649150fd5b6107d79150833d85116107dd575b6107cf81836119db565b810190611fd1565b38610773565b503d6107c5565b82513d87823e3d90fd5b915050670de0b6b3a7640000808202828104821483151715610856578692859261084a61085193610845610830600f5492838a52601589528a8a205490611d78565b91600d549089526015885289892054906121ea565b611d1f565b0490611d90565b610735565b634e487b7160e01b875260118652602487fd5b634e487b7160e01b855260118452602485fd5b5162461bcd60e51b815291820152601060248201526f4e6f20626f6e6420746f20636c61696d60801b604482015260649150fd5b8284346103c9576108c036611ae9565b6017546001600160a01b03906108d99082163314611ef5565b6108e1612404565b6108f060ff6010541615611c37565b6108fd6011548314611e06565b61091861091361090e368587611a2b565b611e49565b6120ee565b94805b8381106109705760208789887f641f6e9d3fa562880c882ed09a661674636d2c6dc3c833c63383ad1bd2d8faaf89898961095f86519384938885528885019161216d565b94878984015216930390a251908152f35b8061097e60019286886120ff565b3561098a575b0161091b565b6109986105ca8287896120ff565b6001600160a01b03881660009081526013602052604090206109c8909183865260209283528b862054101561210f565b81845260128082526109e28b8620546104ba858a8c6120ff565b8386529082528a8520556001600160a01b03881660009081526013602052604090208285528152610a1b8a8520546104ba84898b6120ff565b6001600160a01b038916600090815260136020526040902090918386525289842055610984565b50503461029e578160031936011261029e57602090600c549051908152f35b50503461029e578060031936011261029e5760209181906001600160a01b03610a8861194c565b168152601384528181206024358252845220549051908152f35b9050346103515760203660031901126103515760209282913581526012845220549051908152f35b50503461029e578160031936011261029e57602090600e549051908152f35b83903461029e57602036600319011261029e5735610b1260018060a01b03600554163314611cc7565b6001601054610b2460ff821615611c37565b610b31600c544210611f8e565b610b3e6011548410611dc8565b60ff19161760105580600f5581600c556000805160206126aa8339815191528280a280f35b9050346103515760803660031901126103515780359067ffffffffffffffff8211610bd457610b9491369101611ab8565b6001600160a01b039360443592919085841684036103c95760643595861686036103c957509160209491610bcb9360243591611fe9565b90519015158152f35b8380fd5b9190503461035157602080600319360112610bd457823592610bf86123e1565b610c0760ff6010541615611c37565b610c146011548510611dc8565b3385526016825260ff8386205416610dc857600c5462093a808101809111610db557610c4290421115611f8e565b848260018060a01b03600654166064600a54875194859384926323b872dd60e01b8452338985015230602485015260448401525af1908115610dab578691610d8e575b5015610d565750907fde5c01453f40d10a9cdeaaa7f2b644609198dabb4cf1d17a1496d1d506e2346d8392600a5433875260148252808488205584875260158252610cd4848820918254611d90565b9055610ce4600a54600d54611d90565b600d5533865260168152828620805460ff191660011790558386526015815282862054600e5487528387205410610d4d575b600a5492519283523392a3337fa36cc2bebb74db33e9f88110a07ef56e1b31b24b4c4f51b54b1664266e29f45b8380a36001805580f35b83600e55610d16565b915162461bcd60e51b8152918201526014602482015273109bdb99081d1c985b9cd9995c8819985a5b195960621b6044820152606490fd5b610da59150833d85116107dd576107cf81836119db565b38610c85565b84513d88823e3d90fd5b634e487b7160e01b865260118252602486fd5b915162461bcd60e51b815291820152600d60248201526c105b1c9958591e481d9bdd1959609a1b6044820152606490fd5b9190503461035157602092836003193601126103c957610e1761194c565b6017546001600160a01b039190610e319083163314611ef5565b610e3f60ff60105416611f4c565b169081815260138552828120600f5490818352865283822054948515610ea15750828252601386528382209082528552828120557fe6c65465a8ee0479d6191a15bbbe0667ff4f68727bfefd04bdb6131b470029bb848351858152a251908152f35b845162461bcd60e51b815290810187905260116024820152704e6f2077696e6e696e672073686172657360781b6044820152606490fd5b50503461029e578160031936011261029e5760025490516001600160a01b039091168152602090f35b50503461029e578160031936011261029e57602090600b549051908152f35b90503461035157602036600319011261035157610f3b61194c565b610f436121f7565b6001600160a01b0316918215610f8e575050601780546001600160a01b031916821790557fc6b438e6a8a59579ce6a4406cbd203b740e0d47b458aae6596339bcd40c40d158280a280f35b906020606492519162461bcd60e51b83528201526016602482015275496e76616c696420726f75746572206164647265737360501b6044820152fd5b50503461029e578160031936011261029e5760209051600a8152f35b9050346103515782600319360112610351575490516001600160a01b03909116815260209150f35b50503461029e578160031936011261029e576020905162093a808152f35b50503461029e578160031936011261029e576020906008549051908152f35b9050346103515760203660031901126103515760209282913581526015845220549051908152f35b50503461029e578160031936011261029e57602090600f549051908152f35b50503461029e578160031936011261029e57602090600a549051908152f35b50503461029e578160031936011261029e5760209051308152f35b50503461029e578160031936011261029e57905490516001600160a01b039091168152602090f35b50503461029e578160031936011261029e576103b390611112611eb3565b90519182916020835260208301906119a7565b50503461029e5760209061113b61090e36611a79565b9051908152f35b50503461029e578160031936011261029e5760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258916111806121f7565b611188612404565b835460ff60a01b1916600160a01b17845551338152a180f35b83346103c957806003193601126103c9576111ba6121f7565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b91905034610351576020366003190112610351578154823592906001600160a01b031633036112cd576010549061123560ff831615611c37565b600b54421061129e57506020839260017fffac1500e5679b3ff6518aa340b377b1b544ffde8e2e1f3a786f8b1fe9f140de936112746011548710611dc8565b85600f5542600c5560ff19161760105551428152a26000805160206126aa8339815191528280a280f35b606490602084519162461bcd60e51b83528201526009602482015268546f6f206561726c7960b81b6044820152fd5b6020608492519162461bcd60e51b83528201526024808201527f4f6e6c79207265706f727465722063616e2063616c6c20746869732066756e636044820152633a34b7b760e11b6064820152fd5b50503461029e5760209061113b61133136611a79565b611d9d565b50503461029e578160031936011261029e5760ff6020925460a01c1690519015158152f35b50503461029e57602036600319011261029e5760209181906001600160a01b0361138361194c565b1681526014845220549051908152f35b50503461029e578160031936011261029e576020906009549051908152f35b50503461029e578160031936011261029e5760055490516001600160a01b039091168152602090f35b50503461029e578160031936011261029e576020906007549051908152f35b50503461029e578160031936011261029e5760035490516001600160a01b039091168152602090f35b919050346103515760203660031901126103515781359161144f60018060a01b03600554163314611cc7565b428311156114895750816020917fb78308b2eb98fa00faea36698f56c2389c9bd7c8e76f7c0f7725e33135d4809293600b5551908152a180f35b6020606492519162461bcd60e51b8352820152601a60248201527f446561646c696e65206d75737420626520696e206675747572650000000000006044820152fd5b50503461029e578160031936011261029e5760209060ff6010541690519015158152f35b9050346103515782600319360112610351576115096121f7565b82549060ff8260a01c161561154f575060ff60a01b19168255513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a180f35b8251638dfc202b60e01b8152fd5b905082346103c95760203660031901126103c9578135916011916115846011548510611c83565b61158c611eb3565b926007549361159d81518710611c83565b829683975b8251891015611623576115b58984611e9f565b51670de0b6b3a764000090818102918183041490151715611611576001916115fb6115e38a61160194611d78565b68056bc75e2d63100000808211611609575b50612425565b90611d90565b9801976115a2565b90508d6115f5565b634e487b7160e01b8652848752602486fd5b86856116308a8996611e9f565b5191670de0b6b3a764000092838102908082048514901517156116a9576116719161165a91611d78565b68056bc75e2d631000008082116116a15750612425565b82810292818404149015171561168e5760208461113b8585611d78565b634e487b7160e01b815260118552602490fd5b9050876115f5565b634e487b7160e01b835260118752602483fd5b8284346103c957806003193601126103c9576116d6611eb3565b9160075460ff60105416600f5491601154956116f187611a13565b956116fe865197886119db565b878752602096602081019889601184527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6884915b8383106117be575050505086519760a089019160a08a525180925260c0890160c08360051b8b01019a93905b8382106117915750505050508661177d918780990360208901526119a7565b938501521515606084015260808301520390f35b909192939a83806117af6001938f8f60bf1990830301875251611967565b9d01920192019093929161175e565b60018c81928d9e97989e516117de816117d78189611b7a565b03826119db565b8152019201920191909a94939a611732565b8391503461029e578160031936011261029e576010549061181460ff831615611c37565b600b5442111561188857507fe4d6efcb12aa89dc35692182a18a22bcfd2c5d86dd221420209b7287daab0888602060019394600d54151560001461187f57600e549485945b60ff19161760105583600f5551338152a26000805160206126aa8339815191528280a280f35b85948594611859565b606490602085519162461bcd60e51b8352820152601c60248201527f5265706f7274657220646561646c696e65206e6f7420706173736564000000006044820152fd5b50503461029e578160031936011261029e57602090600d549051908152f35b50503461029e57602036600319011261029e5760209160ff9082906001600160a01b0361191561194c565b1681526016855220541690519015158152f35b849134610351578260031936011261035157546001600160a01b0316815260209150f35b600435906001600160a01b038216820361196257565b600080fd5b919082519283825260005b848110611993575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201611972565b90815180825260208080930193019160005b8281106119c7575050505090565b8351855293810193928101926001016119b9565b90601f8019910116810190811067ffffffffffffffff8211176119fd57604052565b634e487b7160e01b600052604160045260246000fd5b67ffffffffffffffff81116119fd5760051b60200190565b9291611a3682611a13565b91611a4460405193846119db565b829481845260208094019160051b810192831161196257905b828210611a6a5750505050565b81358152908301908301611a5d565b6020600319820112611962576004359067ffffffffffffffff8211611962578060238301121561196257816024611ab593600401359101611a2b565b90565b9181601f840112156119625782359167ffffffffffffffff8311611962576020808501948460051b01011161196257565b906040600319830112611962576004356001600160a01b038116810361196257916024359067ffffffffffffffff821161196257611b2991600401611ab8565b9091565b601154811015611b645760116000527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c680190600090565b634e487b7160e01b600052603260045260246000fd5b80546000939260018083169383821c938515611c2d575b6020958686108114611c1757858552908115611bf85750600114611bb7575b5050505050565b90939495506000929192528360002092846000945b838610611be457505050500101903880808080611bb0565b805485870183015294019385908201611bcc565b60ff19168685015250505090151560051b010191503880808080611bb0565b634e487b7160e01b600052602260045260246000fd5b93607f1693611b91565b15611c3e57565b60405162461bcd60e51b815260206004820152601760248201527f4d61726b657420616c7265616479207265736f6c7665640000000000000000006044820152606490fd5b15611c8a57565b60405162461bcd60e51b8152602060048201526015602482015274092dcecc2d8d2c840deeae8c6dedaca40d2dcc8caf605b1b6044820152606490fd5b15611cce57565b60405162461bcd60e51b8152602060048201526024808201527f4f6e6c7920676f7665726e6f722063616e2063616c6c20746869732066756e636044820152633a34b7b760e11b6064820152608490fd5b81810292918115918404141715611d3257565b634e487b7160e01b600052601160045260246000fd5b8015611d62576ec097ce7bc90715b34b9f10000000000490565b634e487b7160e01b600052601260045260246000fd5b8115611d62570490565b9060018201809211611d3257565b91908201809211611d3257565b611da690611e49565b6000811315611dc257611ab59061271061084a60095483611d1f565b50600090565b15611dcf57565b60405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206f7574636f6d6560881b6044820152606490fd5b15611e0d57565b60405162461bcd60e51b8152602060048201526014602482015273092dcecc2d8d2c840c2e4e4c2f240d8cadccee8d60631b6044820152606490fd5b611ab590611e5b815160115414611e06565b611e63611eb3565b9060075491612223565b90611e7782611a13565b611e8460405191826119db565b8281528092611e95601f1991611a13565b0190602036910137565b8051821015611b645760209160051b010190565b60115490611ec082611e6d565b60009260005b818110611ed4575090925050565b80600191865260126020526040862054611eee8286611e9f565b5201611ec6565b15611efc57565b60405162461bcd60e51b815260206004820152602260248201527f4f6e6c7920726f757465722063616e2063616c6c20746869732066756e63746960448201526137b760f11b6064820152608490fd5b15611f5357565b60405162461bcd60e51b815260206004820152601360248201527213585c9ad95d081b9bdd081c995cdbdb1d9959606a1b6044820152606490fd5b15611f9557565b60405162461bcd60e51b8152602060048201526014602482015273111a5cdc1d5d19481c195c9a5bd908195b99195960621b6044820152606490fd5b90816020910312611962575180151581036119625790565b9291909360115485036120e4576004546001600160a01b0393908416908416036120e45760059280600554169116036120d357600854036120dc5760005b8381106120375750505050600190565b80821b830135601e1984360301811215611962578301803567ffffffffffffffff8111611962576020808301823603811361196257604093845161208484601f19601f88011601826119db565b8481528381019184863692010111611962576000848661039a976120c196863783010152519020936120b586611b2d565b50905193848092611b7a565b8151910120036120d357600101612027565b50505050600090565b505050600090565b5050505050600090565b600160ff1b8114611d325760000390565b9190811015611b645760051b0190565b1561211657565b60405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742073686172657360681b6044820152606490fd5b91909160008382019384129112908015821691151617611d3257565b91908082526020809201929160005b82811061218a575050505090565b83358552938101939281019260010161217c565b156121a557565b60405162461bcd60e51b815260206004820152601860248201527f4469737075746520706572696f64206e6f7420656e64656400000000000000006044820152606490fd5b91908203918211611d3257565b6000546001600160a01b0316330361220b57565b60405163118cdaa760e01b8152336004820152602490fd5b929083518151036123a45783511561237057821561232b576122458385612554565b61224f8551611e6d565b9260009160005b87518110156122fd57808461226d60019388611e9f565b51126122a457612292612280828b611e9f565b5161228b8389611e9f565b5190611d90565b61229c8289611e9f565b525b01612256565b6122cc6122b1828b611e9f565b516122c56122bf848a611e9f565b516120ee565b111561210f565b6122ed6122d9828b611e9f565b516122e76122bf848a611e9f565b906121ea565b6122f78289611e9f565b5261229e565b5094925094505061230d91612554565b9080821061231e57611ab5916121ea565b611ab591610913916121ea565b60405162461bcd60e51b815260206004820152601b60248201527f496e76616c6964206c697175696469747920706172616d6574657200000000006044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b456d7074792061727261797360a01b6044820152606490fd5b60405162461bcd60e51b8152602060048201526015602482015274082e4e4c2f240d8cadccee8d040dad2e6dac2e8c6d605b1b6044820152606490fd5b6002600154146123f2576002600155565b604051633ee5aeb560e01b8152600490fd5b60ff60005460a01c1661241357565b60405163d93c066560e01b8152600490fd5b80156125475768056bc75e2d63100000811161254057670de0b6b3a7640000808281020490818303611d3257818101809111611d325782808080949361246c828096611d1f565b671bc16d674ec800009004908161248291611d90565b9161248c91611d1f565b6729a2241af62c0000900490816124a291611d90565b916124ac91611d1f565b673782dace9d900000900490816124c291611d90565b916124cc91611d1f565b674563918244f40000900490816124e291611d90565b916124ec91611d1f565b6753444835ec5800009004908161250291611d90565b9161250c91611d1f565b676124fee993bc00009004908161252291611d90565b9161252c91611d1f565b676f05b59d3b2000009004611ab591611d90565b5060001990565b50670de0b6b3a764000090565b909190600090815b81518310156125c45761256f8383611e9f565b51670de0b6b3a764000090818102918183041490151715611d32576001916115fb61259d886125b494611d78565b68056bc75e2d631000008082116125bc5750612425565b92019161255c565b9050386115f5565b6125e59250670de0b6b3a7640000939491506125df906125e9565b90611d1f565b0490565b66038d7ea4c680008110611dc257670de0b6b3a76400008082146126a257811061268757600068056bc75e2d63100000916000905b6020821061263b575050611ab59161263591611d90565b60011c90565b909161264a6126358583611d90565b9061265482612425565b8381101561266a575050600190925b019061261e565b8391949550116000146126805760019093612663565b9250505090565b61269361269891611d48565b6125e9565b611ab59019611d82565b505060009056fe93608ecbcf057462da63f5aef413ce7f78c5e1b3bb51859d77a40845ece2bfc3a2646970667358221220f6f1597504e7f62bb1313dab537a8dc99cbe74aca51d9c6df3b50e9294d1693f64736f6c6343000816003360803461012d57601f610cbd38819003918201601f19168301916001600160401b0383118484101761013257808492604094855283398101031261012d57610052602061004b83610148565b9201610148565b3315610114576000549060018060a01b03918260018060a01b031994338684161760005560405192823391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a360018055169081156100d2575083600454161760045516906005541617600555604051610b60908161015d8239f35b62461bcd60e51b815260206004820152601560248201527f496e76616c696420746f6b656e206164647265737300000000000000000000006044820152606490fd5b604051631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361012d5756fe6040608081526004908136101561001557600080fd5b600091823560e01c80630b7e9c44146107d6578063647096ea1461067b5780636a9caa531461016a578063715018a61461061e5780638da5cb5b146105f657806393e30633146104f5578063adaf1c43146104b7578063c45a01551461048e578063d02ab95314610260578063db913236146101a6578063e80b5b5f1461016a578063f2fde38b146100da5763f39690e4146100b057600080fd5b346100d657826003193601126100d6575490516001600160a01b03909116815260209150f35b8280fd5b50346100d65760203660031901126100d6576100f46108ed565b906100fd610afe565b6001600160a01b03918216928315610154575050600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b5050346101a25760203660031901126101a25760209181906001600160a01b036101926108ed565b1681526002845220549051908152f35b5080fd5b5090346100d65760203660031901126100d6576101c16108ed565b6005546001600160a01b0391906101db9083163314610a83565b1691828452600360205260ff82852054161561022b575081835260036020528220805460ff191690557f59d7b1e52008dc342c9421dadfc773114b914a65682a4e4b53cf60a970df0d778280a280f35b6020606492519162461bcd60e51b8352820152601060248201526f13585c9ad95d081b9bdd08199bdd5b9960821b6044820152fd5b5090346100d65760603660031901126100d65761027b6108ed565b9160249067ffffffffffffffff823581811161048a5761029e9036908401610908565b90956102a8610adb565b60018060a01b03809116908189526020600381526102cb60ff898c205416610939565b8751635fae637160e01b8152868101829052918183806102ee8b8201898f610a2d565b0381875afa928315610414578b93610457575b50604435831161041e57818b9188541660648b51809481936323b872dd60e01b8352338d8401528d30908401528860448401525af19081156104145760029291610352918d916103e7575b506109c6565b838b525286892080549182018092116103d55755879190803b156100d65761039097838851809a8195829463ecbe2ad160e01b8452338b8501610a5e565b03925af180156103cb576103a7575b856001805580f35b84116103ba57505052388080808061039f565b634e487b7160e01b85526041905283fd5b84513d88823e3d90fd5b634e487b7160e01b8a5260118652868afd5b6104079150833d851161040d575b6103ff8183610976565b8101906109ae565b3861034c565b503d6103f5565b89513d8d823e3d90fd5b885162461bcd60e51b81528088018390526014818a015273436f73742065786365656473206d6178696d756d60601b6044820152606490fd5b9092508181813d8311610483575b61046f8183610976565b8101031261047f57519138610301565b8a80fd5b503d610465565b8680fd5b5050346101a257816003193601126101a25760055490516001600160a01b039091168152602090f35b5050346101a25760203660031901126101a25760209160ff9082906001600160a01b036104e26108ed565b1681526003855220541690519015158152f35b5090346100d65760203660031901126100d6576105106108ed565b6005546001600160a01b03919061052a9083163314610a83565b169182156105bb57828452600360205260ff8285205416610582575081835260036020528220805460ff191660011790557fbc600b1f03d316c479b49930c28e328809316458d5b5dacbb7419df5f6f896478280a280f35b6020606492519162461bcd60e51b8352820152601460248201527313585c9ad95d08185b1c9958591e48185919195960621b6044820152fd5b6020606492519162461bcd60e51b83528201526016602482015275496e76616c6964206d61726b6574206164647265737360501b6044820152fd5b5050346101a257816003193601126101a257905490516001600160a01b039091168152602090f35b8334610678578060031936011261067857610637610afe565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b5090346100d657806003193601126100d6576106956108ed565b916024359267ffffffffffffffff84116107d2576106b96107049436908401610908565b9290916106c4610adb565b60018060a01b03809116928388526020948591600383526106ea60ff898c205416610939565b875163e8f8cc4b60e01b8152988992839233888501610a5e565b03818a875af19586156107c8578796610797575b508154855163a9059cbb60e01b815233938101938452602084018890529285928492169082908a9082906040015b03925af19081156103cb579161076a610777959492600294899161078057506109c6565b8652528320918254610a0a565b90556001805580f35b6104079150843d861161040d576103ff8183610976565b909195508381813d83116107c1575b6107b08183610976565b8101031261048a5751949083610718565b503d6107a6565b85513d89823e3d90fd5b8480fd5b5090346100d6576020806003193601126108e9576107f26108ed565b926107fb610adb565b6001600160a01b0393841680865260038352838620549091906108209060ff16610939565b835163639e32af60e11b815233828201529483866024818a875af19586156107c85787966108ba575b508515610881578154855163a9059cbb60e01b815233938101938452602084018890529285928492169082908a908290604001610746565b845162461bcd60e51b815280830185905260136024820152724e6f207061796f757420617661696c61626c6560681b6044820152606490fd5b9095508381813d83116108e2575b6108d28183610976565b8101031261048a57519438610849565b503d6108c8565b8380fd5b600435906001600160a01b038216820361090357565b600080fd5b9181601f840112156109035782359167ffffffffffffffff8311610903576020808501948460051b01011161090357565b1561094057565b60405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a59081b585c9ad95d60921b6044820152606490fd5b90601f8019910116810190811067ffffffffffffffff82111761099857604052565b634e487b7160e01b600052604160045260246000fd5b90816020910312610903575180151581036109035790565b156109cd57565b60405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606490fd5b91908203918211610a1757565b634e487b7160e01b600052601160045260246000fd5b91908082526020809201929160005b828110610a4a575050505090565b833585529381019392810192600101610a3c565b6001600160a01b039091168152604060208201819052610a8093910191610a2d565b90565b15610a8a57565b60405162461bcd60e51b815260206004820152602360248201527f4f6e6c7920666163746f72792063616e2063616c6c20746869732066756e637460448201526234b7b760e91b6064820152608490fd5b600260015414610aec576002600155565b604051633ee5aeb560e01b8152600490fd5b6000546001600160a01b03163303610b1257565b60405163118cdaa760e01b8152336004820152602490fdfea26469706673582212208a26bd918666df2a02ffc78c452cb7a53877caf562a6fd95e8ddb383f82172aa64736f6c634300081600339016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300cd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f03300a26469706673582212207b5ee49fb2c69b612a5e3aabd6e0024e3f2a45c757aa230435f3b21a2b1dc89564736f6c63430008160033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.