Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ExoticPositionalMarketData
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.0; // external import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; // internal import "../utils/proxy/solidity-0.8.0/ProxyReentrancyGuard.sol"; import "../utils/proxy/solidity-0.8.0/ProxyOwned.sol"; import "../interfaces/IExoticPositionalMarketManager.sol"; import "../interfaces/IExoticPositionalMarket.sol"; contract ExoticPositionalMarketData is Initializable, ProxyOwned, PausableUpgradeable, ProxyReentrancyGuard { using SafeMathUpgradeable for uint; using SafeERC20Upgradeable for IERC20Upgradeable; struct MarketData { string marketQuestion; string marketSource; uint ticketType; uint endOfPositioning; uint fixedTicketPrice; uint creationTime; bool withdrawalAllowed; bool disputed; bool resolved; uint resolvedTime; string[] positionPhrasesList; uint[] tags; uint totalPlacedAmount; uint totalClaimableAmount; uint[] amountsPerPosition; bool canUsersPlacePosition; bool canMarketBeResolved; bool canMarketBeResolvedByPDAO; bool canUsersClaim; bool isCancelled; bool paused; uint winningPosition; address creatorAddress; address resolverAddress; uint fixedBondAmount; uint disputePrice; uint safeBoxLowAmount; uint arbitraryRewardForDisputor; uint backstopTimeout; uint disputeClosedTime; bool canCreatorCancelMarket; } address public marketManagerAddress; function initialize(address _owner, address _marketManagerAddress) public initializer { setOwner(_owner); initNonReentrant(); marketManagerAddress = _marketManagerAddress; } function setMarketManager(address _marketManagerAddress) external onlyOwner { require(_marketManagerAddress != address(0), "Invalid address"); marketManagerAddress = _marketManagerAddress; emit NewMarketManagerAddress(_marketManagerAddress); } function getAllMarketData(address _market) external view returns (MarketData memory) { uint positionCount = IExoticPositionalMarket(_market).positionCount(); IExoticPositionalMarket market = IExoticPositionalMarket(_market); MarketData memory marketData; marketData.marketQuestion = market.marketQuestion(); marketData.marketSource = market.marketSource(); marketData.ticketType = market.getTicketType(); marketData.endOfPositioning = market.endOfPositioning(); marketData.fixedTicketPrice = market.fixedTicketPrice(); marketData.creationTime = market.creationTime(); marketData.withdrawalAllowed = market.withdrawalAllowed(); marketData.disputed = market.disputed(); marketData.resolved = market.resolved(); marketData.resolvedTime = market.resolvedTime(); marketData.paused = market.paused(); marketData.winningPosition = market.winningPosition(); marketData.fixedBondAmount = market.fixedBondAmount(); marketData.disputePrice = market.disputePrice(); marketData.safeBoxLowAmount = market.safeBoxLowAmount(); marketData.arbitraryRewardForDisputor = market.arbitraryRewardForDisputor(); marketData.backstopTimeout = market.backstopTimeout(); marketData.disputeClosedTime = market.disputeClosedTime(); marketData.totalPlacedAmount = market.getTotalPlacedAmount(); marketData.totalClaimableAmount = market.getTotalClaimableAmount(); marketData.canUsersPlacePosition = market.canUsersPlacePosition(); marketData.canMarketBeResolved = market.canMarketBeResolved(); marketData.canMarketBeResolvedByPDAO = market.canMarketBeResolvedByPDAO(); marketData.canUsersClaim = market.canUsersClaim(); marketData.isCancelled = market.isMarketCancelled(); marketData.creatorAddress = IExoticPositionalMarketManager(marketManagerAddress).creatorAddress(_market); marketData.resolverAddress = IExoticPositionalMarketManager(marketManagerAddress).resolverAddress(_market); marketData.canCreatorCancelMarket = market.canCreatorCancelMarket(); marketData.tags = market.getTags(); string[] memory positionPhrasesList = new string[](positionCount); uint[] memory amountsPerPosition = new uint[](positionCount); if (positionCount > 0) { for (uint i = 1; i <= positionCount; i++) { positionPhrasesList[i - 1] = market.positionPhrase(i); amountsPerPosition[i - 1] = market.getPlacedAmountPerPosition(i); } } marketData.positionPhrasesList = positionPhrasesList; marketData.amountsPerPosition = amountsPerPosition; return marketData; } event NewMarketManagerAddress(address _marketManagerAddress); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20Upgradeable.sol"; import "../../../utils/AddressUpgradeable.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20Upgradeable { using AddressUpgradeable for address; function safeTransfer( IERC20Upgradeable token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20Upgradeable token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20Upgradeable token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20Upgradeable token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20Upgradeable token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library MathUpgradeable { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol) pragma solidity ^0.8.0; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have 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. * * 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 initialize the implementation contract, you can either invoke the * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() initializer {} * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMathUpgradeable { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Context_init_unchained(); __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier * available, which can be aplied 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. */ contract ProxyReentrancyGuard { /// @dev counter to allow mutex lock with only one SSTORE operation uint256 private _guardCounter; bool private _initialized; function initNonReentrant() public { require(!_initialized, "Already initialized"); _initialized = true; _guardCounter = 1; } /** * @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 make it call a * `private` function that does the actual work. */ modifier nonReentrant() { _guardCounter += 1; uint256 localCounter = _guardCounter; _; require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // Clone of syntetix contract without constructor contract ProxyOwned { address public owner; address public nominatedOwner; bool private _initialized; bool private _transferredAtInit; function setOwner(address _owner) public { require(_owner != address(0), "Owner address cannot be 0"); require(!_initialized, "Already initialized, use nominateNewOwner"); _initialized = true; owner = _owner; emit OwnerChanged(address(0), _owner); } function nominateNewOwner(address _owner) external onlyOwner { nominatedOwner = _owner; emit OwnerNominated(_owner); } function acceptOwnership() external { require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership"); emit OwnerChanged(owner, nominatedOwner); owner = nominatedOwner; nominatedOwner = address(0); } function transferOwnershipAtInit(address proxyAddress) external onlyOwner { require(proxyAddress != address(0), "Invalid address"); require(!_transferredAtInit, "Already transferred"); owner = proxyAddress; _transferredAtInit = true; emit OwnerChanged(owner, proxyAddress); } modifier onlyOwner { _onlyOwner(); _; } function _onlyOwner() private view { require(msg.sender == owner, "Only the contract owner may perform this action"); } event OwnerNominated(address newOwner); event OwnerChanged(address oldOwner, address newOwner); }
pragma solidity ^0.8.0; interface IExoticPositionalMarketManager { /* ========== VIEWS / VARIABLES ========== */ function getActiveMarketAddress(uint _index) external view returns(address); function getActiveMarketIndex(address _marketAddress) external view returns(uint); function isActiveMarket(address _marketAddress) external view returns(bool); function numberOfActiveMarkets() external view returns(uint); function getMarketBondAmount(address _market) external view returns (uint); function maximumPositionsAllowed() external view returns(uint); function paymentToken() external view returns(address); function owner() external view returns(address); function thalesBonds() external view returns(address); function oracleCouncilAddress() external view returns(address); function safeBoxAddress() external view returns(address); function creatorAddress(address _market) external view returns(address); function resolverAddress(address _market) external view returns(address); function isPauserAddress(address _pauserAddress) external view returns(bool); function safeBoxPercentage() external view returns(uint); function creatorPercentage() external view returns(uint); function resolverPercentage() external view returns(uint); function withdrawalPercentage() external view returns(uint); function pDAOResolveTimePeriod() external view returns(uint); function claimTimeoutDefaultPeriod() external view returns(uint); function maxOracleCouncilMembers() external view returns(uint); function fixedBondAmount() external view returns(uint); function disputePrice() external view returns(uint); function safeBoxLowAmount() external view returns(uint); function arbitraryRewardForDisputor() external view returns(uint); function disputeStringLengthLimit() external view returns(uint); function cancelledByCreator(address _market) external view returns(bool); function withdrawalTimePeriod() external view returns(uint); function createExoticMarket( string memory _marketQuestion, string memory _marketSource, uint _endOfPositioning, uint _fixedTicketPrice, bool _withdrawalAllowed, uint[] memory _tags, uint _positionCount, string[] memory _positionPhrases ) external; function createCLMarket( string memory _marketQuestion, string memory _marketSource, uint _endOfPositioning, uint _fixedTicketPrice, bool _withdrawalAllowed, uint[] memory _tags, uint _positionCount, string[] memory _positionPhrases ) external; function disputeMarket(address _marketAddress, address disputor) external; function resolveMarket(address _marketAddress, uint _outcomePosition) external; function resetMarket(address _marketAddress) external; function cancelMarket(address _market) external ; function closeDispute(address _market) external ; function setBackstopTimeout(address _market) external; function sendMarketBondAmountTo(address _market, address _recepient, uint _amount) external; function addPauserAddress(address _pauserAddress) external; function removePauserAddress(address _pauserAddress) external; function sendRewardToDisputor(address _market, address _disputorAddress, uint amount) external; function issueBondsBackToCreatorAndResolver(address _marketAddress) external ; }
pragma solidity ^0.8.0; interface IExoticPositionalMarket { /* ========== VIEWS / VARIABLES ========== */ function isMarketCreated() external view returns (bool); function creatorAddress() external view returns (address); function resolverAddress() external view returns (address); function totalBondAmount() external view returns(uint); function marketQuestion() external view returns(string memory); function marketSource() external view returns(string memory); function positionPhrase(uint index) external view returns(string memory); function getTicketType() external view returns(uint); function positionCount() external view returns(uint); function endOfPositioning() external view returns(uint); function resolvedTime() external view returns(uint); function fixedTicketPrice() external view returns(uint); function creationTime() external view returns(uint); function winningPosition() external view returns(uint); function getTags() external view returns(uint[] memory); function getTotalPlacedAmount() external view returns(uint); function getTotalClaimableAmount() external view returns(uint); function getPlacedAmountPerPosition(uint index) external view returns(uint); function fixedBondAmount() external view returns(uint); function disputePrice() external view returns(uint); function safeBoxLowAmount() external view returns(uint); function arbitraryRewardForDisputor() external view returns(uint); function backstopTimeout() external view returns(uint); function disputeClosedTime() external view returns(uint); function withdrawalAllowed() external view returns(bool); function disputed() external view returns(bool); function resolved() external view returns(bool); function canUsersPlacePosition() external view returns (bool); function canMarketBeResolvedByPDAO() external view returns(bool); function canMarketBeResolved() external view returns (bool); function canUsersClaim() external view returns (bool); function isMarketCancelled() external view returns (bool); function paused() external view returns (bool); function canCreatorCancelMarket() external view returns (bool); function getAllFees() external view returns (uint, uint, uint, uint); function canIssueFees() external view returns (bool); function transferBondToMarket(address _sender, uint _amount) external; function resolveMarket(uint _outcomePosition, address _resolverAddress) external; function cancelMarket() external; function resetMarket() external; function claimWinningTicketOnBehalf(address _user) external; function openDispute() external; function closeDispute() external; function setBackstopTimeout(uint _timeoutPeriod) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { __Context_init_unchained(); } 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; } uint256[50] private __gap; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_marketManagerAddress","type":"address"}],"name":"NewMarketManagerAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_market","type":"address"}],"name":"getAllMarketData","outputs":[{"components":[{"internalType":"string","name":"marketQuestion","type":"string"},{"internalType":"string","name":"marketSource","type":"string"},{"internalType":"uint256","name":"ticketType","type":"uint256"},{"internalType":"uint256","name":"endOfPositioning","type":"uint256"},{"internalType":"uint256","name":"fixedTicketPrice","type":"uint256"},{"internalType":"uint256","name":"creationTime","type":"uint256"},{"internalType":"bool","name":"withdrawalAllowed","type":"bool"},{"internalType":"bool","name":"disputed","type":"bool"},{"internalType":"bool","name":"resolved","type":"bool"},{"internalType":"uint256","name":"resolvedTime","type":"uint256"},{"internalType":"string[]","name":"positionPhrasesList","type":"string[]"},{"internalType":"uint256[]","name":"tags","type":"uint256[]"},{"internalType":"uint256","name":"totalPlacedAmount","type":"uint256"},{"internalType":"uint256","name":"totalClaimableAmount","type":"uint256"},{"internalType":"uint256[]","name":"amountsPerPosition","type":"uint256[]"},{"internalType":"bool","name":"canUsersPlacePosition","type":"bool"},{"internalType":"bool","name":"canMarketBeResolved","type":"bool"},{"internalType":"bool","name":"canMarketBeResolvedByPDAO","type":"bool"},{"internalType":"bool","name":"canUsersClaim","type":"bool"},{"internalType":"bool","name":"isCancelled","type":"bool"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"uint256","name":"winningPosition","type":"uint256"},{"internalType":"address","name":"creatorAddress","type":"address"},{"internalType":"address","name":"resolverAddress","type":"address"},{"internalType":"uint256","name":"fixedBondAmount","type":"uint256"},{"internalType":"uint256","name":"disputePrice","type":"uint256"},{"internalType":"uint256","name":"safeBoxLowAmount","type":"uint256"},{"internalType":"uint256","name":"arbitraryRewardForDisputor","type":"uint256"},{"internalType":"uint256","name":"backstopTimeout","type":"uint256"},{"internalType":"uint256","name":"disputeClosedTime","type":"uint256"},{"internalType":"bool","name":"canCreatorCancelMarket","type":"bool"}],"internalType":"struct ExoticPositionalMarketData.MarketData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initNonReentrant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_marketManagerAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"marketManagerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_marketManagerAddress","type":"address"}],"name":"setMarketManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"transferOwnershipAtInit","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061200c806100206000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806379ba50971161007157806379ba5097146101525780638da5cb5b1461015a578063c3b83f5f14610173578063d82aff1114610186578063ebc7977214610199578063f7cea7a8146101a157600080fd5b806313af4035146100b95780631627540c146100ce5780633e34213f146100e1578063485cc9551461011657806353a47bb7146101295780635c975abb1461013c575b600080fd5b6100cc6100c7366004611a04565b6101c1565b005b6100cc6100dc366004611a04565b610301565b6067546100f99061010090046001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100cc610124366004611a43565b610357565b6001546100f9906001600160a01b031681565b60345460ff16604051901515815260200161010d565b6100cc610443565b6000546100f9906201000090046001600160a01b031681565b6100cc610181366004611a04565b610540565b6100cc610194366004611a04565b610659565b6100cc6106ff565b6101b46101af366004611a04565b61075d565b60405161010d9190611ca8565b6001600160a01b03811661021c5760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600154600160a01b900460ff16156102885760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b6064820152608401610213565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b61030961187e565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020016102f6565b600054610100900460ff166103725760005460ff1615610376565b303b155b6103d95760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610213565b600054610100900460ff161580156103fb576000805461ffff19166101011790555b610404836101c1565b61040c6106ff565b60678054610100600160a81b0319166101006001600160a01b03851602179055801561043e576000805461ff00191690555b505050565b6001546001600160a01b031633146104bb5760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610213565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b61054861187e565b6001600160a01b0381166105905760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610213565b600154600160a81b900460ff16156105e05760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b6044820152606401610213565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91016102f6565b61066161187e565b6001600160a01b0381166106a95760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610213565b60678054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527fb8c1e27d4851971d1a3846173347fa45a0dbf5e73e17c3788f32f5347df8d449906020016102f6565b60675460ff16156107485760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610213565b6067805460ff19166001908117909155606655565b6107656118f8565b6000826001600160a01b031663e7702d056040518163ffffffff1660e01b815260040160206040518083038186803b1580156107a057600080fd5b505afa1580156107b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d89190611bd3565b9050826107e36118f8565b816001600160a01b031663066f69af6040518163ffffffff1660e01b815260040160006040518083038186803b15801561081c57600080fd5b505afa158015610830573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108589190810190611b43565b8160000181905250816001600160a01b031663174478366040518163ffffffff1660e01b815260040160006040518083038186803b15801561089957600080fd5b505afa1580156108ad573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108d59190810190611b43565b8160200181905250816001600160a01b0316632d1789646040518163ffffffff1660e01b815260040160206040518083038186803b15801561091657600080fd5b505afa15801561092a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094e9190611bd3565b816040018181525050816001600160a01b0316635fcf27be6040518163ffffffff1660e01b815260040160206040518083038186803b15801561099057600080fd5b505afa1580156109a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c89190611bd3565b816060018181525050816001600160a01b0316633bfe56076040518163ffffffff1660e01b815260040160206040518083038186803b158015610a0a57600080fd5b505afa158015610a1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a429190611bd3565b816080018181525050816001600160a01b031663d8270dce6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a8457600080fd5b505afa158015610a98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abc9190611bd3565b8160a0018181525050816001600160a01b031663a1d193616040518163ffffffff1660e01b815260040160206040518083038186803b158015610afe57600080fd5b505afa158015610b12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b369190611b23565b151560c0820152604080516301a5711b60e21b815290516001600160a01b03841691630695c46c916004808301926020929190829003018186803b158015610b7d57600080fd5b505afa158015610b91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb59190611b23565b151560e082015260408051633f6fa65560e01b815290516001600160a01b03841691633f6fa655916004808301926020929190829003018186803b158015610bfc57600080fd5b505afa158015610c10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c349190611b23565b151561010082015260408051637eae80df60e11b815290516001600160a01b0384169163fd5d01be916004808301926020929190829003018186803b158015610c7c57600080fd5b505afa158015610c90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb49190611bd3565b81610120018181525050816001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cf757600080fd5b505afa158015610d0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2f9190611b23565b151561028082015260408051632486d67160e01b815290516001600160a01b03841691632486d671916004808301926020929190829003018186803b158015610d7757600080fd5b505afa158015610d8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610daf9190611bd3565b816102a0018181525050816001600160a01b03166389265ca76040518163ffffffff1660e01b815260040160206040518083038186803b158015610df257600080fd5b505afa158015610e06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2a9190611bd3565b81610300018181525050816001600160a01b0316636da19c356040518163ffffffff1660e01b815260040160206040518083038186803b158015610e6d57600080fd5b505afa158015610e81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea59190611bd3565b81610320018181525050816001600160a01b031663b0092db76040518163ffffffff1660e01b815260040160206040518083038186803b158015610ee857600080fd5b505afa158015610efc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f209190611bd3565b81610340018181525050816001600160a01b031663465591f96040518163ffffffff1660e01b815260040160206040518083038186803b158015610f6357600080fd5b505afa158015610f77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9b9190611bd3565b81610360018181525050816001600160a01b031663d9158ecc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610fde57600080fd5b505afa158015610ff2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110169190611bd3565b81610380018181525050816001600160a01b03166371e0c7426040518163ffffffff1660e01b815260040160206040518083038186803b15801561105957600080fd5b505afa15801561106d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110919190611bd3565b816103a0018181525050816001600160a01b031662f367a86040518163ffffffff1660e01b815260040160206040518083038186803b1580156110d357600080fd5b505afa1580156110e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110b9190611bd3565b81610180018181525050816001600160a01b0316638e2b27676040518163ffffffff1660e01b815260040160206040518083038186803b15801561114e57600080fd5b505afa158015611162573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111869190611bd3565b816101a0018181525050816001600160a01b031663f44e7fba6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111c957600080fd5b505afa1580156111dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112019190611b23565b15156101e082015260408051636ef13e1d60e11b815290516001600160a01b0384169163dde27c3a916004808301926020929190829003018186803b15801561124957600080fd5b505afa15801561125d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112819190611b23565b15156102008201526040805163833c26d760e01b815290516001600160a01b0384169163833c26d7916004808301926020929190829003018186803b1580156112c957600080fd5b505afa1580156112dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113019190611b23565b151561022082015260408051630c4be47f60e11b815290516001600160a01b03841691631897c8fe916004808301926020929190829003018186803b15801561134957600080fd5b505afa15801561135d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113819190611b23565b15156102408201526040805163189e081160e21b815290516001600160a01b038416916362782044916004808301926020929190829003018186803b1580156113c957600080fd5b505afa1580156113dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114019190611b23565b151561026082015260675460405163677755bb60e01b81526001600160a01b0387811660048301526101009092049091169063677755bb9060240160206040518083038186803b15801561145457600080fd5b505afa158015611468573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148c9190611a27565b6001600160a01b039081166102c0830152606754604051630187eab160e71b815287831660048201526101009091049091169063c3f558809060240160206040518083038186803b1580156114e057600080fd5b505afa1580156114f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115189190611a27565b816102e001906001600160a01b031690816001600160a01b031681525050816001600160a01b031663e3b221306040518163ffffffff1660e01b815260040160206040518083038186803b15801561156f57600080fd5b505afa158015611583573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115a79190611b23565b15156103c08201526040805163995d9ab760e01b815290516001600160a01b0384169163995d9ab7916004808301926000929190829003018186803b1580156115ef57600080fd5b505afa158015611603573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261162b9190810190611a7b565b61016082015260008367ffffffffffffffff81111561165a57634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561168d57816020015b60608152602001906001900390816116785790505b50905060008467ffffffffffffffff8111156116b957634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156116e2578160200160208202803683370190505b50905084156118675760015b85811161186557604051637066b6f360e11b8152600481018290526001600160a01b0386169063e0cd6de69060240160006040518083038186803b15801561173557600080fd5b505afa158015611749573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117719190810190611b43565b8361177d600184611f30565b8151811061179b57634e487b7160e01b600052603260045260246000fd5b602090810291909101015260405163d8c4dc8b60e01b8152600481018290526001600160a01b0386169063d8c4dc8b9060240160206040518083038186803b1580156117e657600080fd5b505afa1580156117fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181e9190611bd3565b8261182a600184611f30565b8151811061184857634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061185d81611f77565b9150506116ee565b505b6101408301919091526101c0820152949350505050565b6000546201000090046001600160a01b031633146118f65760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610213565b565b604051806103e001604052806060815260200160608152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581526020016000151581526020016000815260200160608152602001606081526020016000815260200160008152602001606081526020016000151581526020016000151581526020016000151581526020016000151581526020016000151581526020016000151581526020016000815260200160006001600160a01b0316815260200160006001600160a01b031681526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b600060208284031215611a15578081fd5b8135611a2081611fbe565b9392505050565b600060208284031215611a38578081fd5b8151611a2081611fbe565b60008060408385031215611a55578081fd5b8235611a6081611fbe565b91506020830135611a7081611fbe565b809150509250929050565b60006020808385031215611a8d578182fd5b825167ffffffffffffffff80821115611aa4578384fd5b818501915085601f830112611ab7578384fd5b815181811115611ac957611ac9611fa8565b8060051b9150611ada848301611eff565b8181528481019084860184860187018a1015611af4578788fd5b8795505b83861015611b16578051835260019590950194918601918601611af8565b5098975050505050505050565b600060208284031215611b34578081fd5b81518015158114611a20578182fd5b600060208284031215611b54578081fd5b815167ffffffffffffffff80821115611b6b578283fd5b818401915084601f830112611b7e578283fd5b815181811115611b9057611b90611fa8565b611ba3601f8201601f1916602001611eff565b9150808252856020828501011115611bb9578384fd5b611bca816020840160208601611f47565b50949350505050565b600060208284031215611be4578081fd5b5051919050565b600082825180855260208086019550808260051b840101818601855b84811015611c3557601f19868403018952611c23838351611c7c565b98840198925090830190600101611c07565b5090979650505050505050565b6000815180845260208085019450808401835b83811015611c7157815187529582019590820190600101611c55565b509495945050505050565b60008151808452611c94816020860160208601611f47565b601f01601f19169290920160200192915050565b60208152600082516103e0806020850152611cc7610400850183611c7c565b91506020850151601f1980868503016040870152611ce58483611c7c565b93506040870151606087015260608701516080870152608087015160a087015260a087015160c087015260c08701519150611d2460e087018315159052565b60e08701519150610100611d3b8188018415159052565b8701519150610120611d508782018415159052565b80880151925050610140828188015280880151925050610160818786030181880152611d7c8584611beb565b945080880151925050610180818786030181880152611d9b8584611c42565b908801516101a0888101919091528801516101c08089019190915288015187820383016101e0808a01919091529195509250611dd78584611c42565b94508088015192505050610200611df18187018315159052565b8601519050610220611e068682018315159052565b8601519050610240611e1b8682018315159052565b8601519050610260611e308682018315159052565b8601519050610280611e458682018315159052565b86015190506102a0611e5a8682018315159052565b8601516102c08681019190915286015190506102e0611e83818701836001600160a01b03169052565b8601519050610300611e9f868201836001600160a01b03169052565b860151610320868101919091528601516103408087019190915286015161036080870191909152860151610380808701919091528601516103a0808701919091528601516103c08087019190915290950151151593019290925250919050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611f2857611f28611fa8565b604052919050565b600082821015611f4257611f42611f92565b500390565b60005b83811015611f62578181015183820152602001611f4a565b83811115611f71576000848401525b50505050565b6000600019821415611f8b57611f8b611f92565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611fd357600080fd5b5056fea2646970667358221220172f4e9405d2ebb50d74e5c5c57b780c37fb072ca03399a1cd9ec22b6672e45964736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c806379ba50971161007157806379ba5097146101525780638da5cb5b1461015a578063c3b83f5f14610173578063d82aff1114610186578063ebc7977214610199578063f7cea7a8146101a157600080fd5b806313af4035146100b95780631627540c146100ce5780633e34213f146100e1578063485cc9551461011657806353a47bb7146101295780635c975abb1461013c575b600080fd5b6100cc6100c7366004611a04565b6101c1565b005b6100cc6100dc366004611a04565b610301565b6067546100f99061010090046001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100cc610124366004611a43565b610357565b6001546100f9906001600160a01b031681565b60345460ff16604051901515815260200161010d565b6100cc610443565b6000546100f9906201000090046001600160a01b031681565b6100cc610181366004611a04565b610540565b6100cc610194366004611a04565b610659565b6100cc6106ff565b6101b46101af366004611a04565b61075d565b60405161010d9190611ca8565b6001600160a01b03811661021c5760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600154600160a01b900460ff16156102885760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b6064820152608401610213565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b61030961187e565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020016102f6565b600054610100900460ff166103725760005460ff1615610376565b303b155b6103d95760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610213565b600054610100900460ff161580156103fb576000805461ffff19166101011790555b610404836101c1565b61040c6106ff565b60678054610100600160a81b0319166101006001600160a01b03851602179055801561043e576000805461ff00191690555b505050565b6001546001600160a01b031633146104bb5760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610213565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b61054861187e565b6001600160a01b0381166105905760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610213565b600154600160a81b900460ff16156105e05760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b6044820152606401610213565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91016102f6565b61066161187e565b6001600160a01b0381166106a95760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610213565b60678054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527fb8c1e27d4851971d1a3846173347fa45a0dbf5e73e17c3788f32f5347df8d449906020016102f6565b60675460ff16156107485760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610213565b6067805460ff19166001908117909155606655565b6107656118f8565b6000826001600160a01b031663e7702d056040518163ffffffff1660e01b815260040160206040518083038186803b1580156107a057600080fd5b505afa1580156107b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d89190611bd3565b9050826107e36118f8565b816001600160a01b031663066f69af6040518163ffffffff1660e01b815260040160006040518083038186803b15801561081c57600080fd5b505afa158015610830573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108589190810190611b43565b8160000181905250816001600160a01b031663174478366040518163ffffffff1660e01b815260040160006040518083038186803b15801561089957600080fd5b505afa1580156108ad573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108d59190810190611b43565b8160200181905250816001600160a01b0316632d1789646040518163ffffffff1660e01b815260040160206040518083038186803b15801561091657600080fd5b505afa15801561092a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094e9190611bd3565b816040018181525050816001600160a01b0316635fcf27be6040518163ffffffff1660e01b815260040160206040518083038186803b15801561099057600080fd5b505afa1580156109a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c89190611bd3565b816060018181525050816001600160a01b0316633bfe56076040518163ffffffff1660e01b815260040160206040518083038186803b158015610a0a57600080fd5b505afa158015610a1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a429190611bd3565b816080018181525050816001600160a01b031663d8270dce6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a8457600080fd5b505afa158015610a98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abc9190611bd3565b8160a0018181525050816001600160a01b031663a1d193616040518163ffffffff1660e01b815260040160206040518083038186803b158015610afe57600080fd5b505afa158015610b12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b369190611b23565b151560c0820152604080516301a5711b60e21b815290516001600160a01b03841691630695c46c916004808301926020929190829003018186803b158015610b7d57600080fd5b505afa158015610b91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb59190611b23565b151560e082015260408051633f6fa65560e01b815290516001600160a01b03841691633f6fa655916004808301926020929190829003018186803b158015610bfc57600080fd5b505afa158015610c10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c349190611b23565b151561010082015260408051637eae80df60e11b815290516001600160a01b0384169163fd5d01be916004808301926020929190829003018186803b158015610c7c57600080fd5b505afa158015610c90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb49190611bd3565b81610120018181525050816001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cf757600080fd5b505afa158015610d0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2f9190611b23565b151561028082015260408051632486d67160e01b815290516001600160a01b03841691632486d671916004808301926020929190829003018186803b158015610d7757600080fd5b505afa158015610d8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610daf9190611bd3565b816102a0018181525050816001600160a01b03166389265ca76040518163ffffffff1660e01b815260040160206040518083038186803b158015610df257600080fd5b505afa158015610e06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2a9190611bd3565b81610300018181525050816001600160a01b0316636da19c356040518163ffffffff1660e01b815260040160206040518083038186803b158015610e6d57600080fd5b505afa158015610e81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea59190611bd3565b81610320018181525050816001600160a01b031663b0092db76040518163ffffffff1660e01b815260040160206040518083038186803b158015610ee857600080fd5b505afa158015610efc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f209190611bd3565b81610340018181525050816001600160a01b031663465591f96040518163ffffffff1660e01b815260040160206040518083038186803b158015610f6357600080fd5b505afa158015610f77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9b9190611bd3565b81610360018181525050816001600160a01b031663d9158ecc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610fde57600080fd5b505afa158015610ff2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110169190611bd3565b81610380018181525050816001600160a01b03166371e0c7426040518163ffffffff1660e01b815260040160206040518083038186803b15801561105957600080fd5b505afa15801561106d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110919190611bd3565b816103a0018181525050816001600160a01b031662f367a86040518163ffffffff1660e01b815260040160206040518083038186803b1580156110d357600080fd5b505afa1580156110e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110b9190611bd3565b81610180018181525050816001600160a01b0316638e2b27676040518163ffffffff1660e01b815260040160206040518083038186803b15801561114e57600080fd5b505afa158015611162573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111869190611bd3565b816101a0018181525050816001600160a01b031663f44e7fba6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111c957600080fd5b505afa1580156111dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112019190611b23565b15156101e082015260408051636ef13e1d60e11b815290516001600160a01b0384169163dde27c3a916004808301926020929190829003018186803b15801561124957600080fd5b505afa15801561125d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112819190611b23565b15156102008201526040805163833c26d760e01b815290516001600160a01b0384169163833c26d7916004808301926020929190829003018186803b1580156112c957600080fd5b505afa1580156112dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113019190611b23565b151561022082015260408051630c4be47f60e11b815290516001600160a01b03841691631897c8fe916004808301926020929190829003018186803b15801561134957600080fd5b505afa15801561135d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113819190611b23565b15156102408201526040805163189e081160e21b815290516001600160a01b038416916362782044916004808301926020929190829003018186803b1580156113c957600080fd5b505afa1580156113dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114019190611b23565b151561026082015260675460405163677755bb60e01b81526001600160a01b0387811660048301526101009092049091169063677755bb9060240160206040518083038186803b15801561145457600080fd5b505afa158015611468573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148c9190611a27565b6001600160a01b039081166102c0830152606754604051630187eab160e71b815287831660048201526101009091049091169063c3f558809060240160206040518083038186803b1580156114e057600080fd5b505afa1580156114f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115189190611a27565b816102e001906001600160a01b031690816001600160a01b031681525050816001600160a01b031663e3b221306040518163ffffffff1660e01b815260040160206040518083038186803b15801561156f57600080fd5b505afa158015611583573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115a79190611b23565b15156103c08201526040805163995d9ab760e01b815290516001600160a01b0384169163995d9ab7916004808301926000929190829003018186803b1580156115ef57600080fd5b505afa158015611603573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261162b9190810190611a7b565b61016082015260008367ffffffffffffffff81111561165a57634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561168d57816020015b60608152602001906001900390816116785790505b50905060008467ffffffffffffffff8111156116b957634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156116e2578160200160208202803683370190505b50905084156118675760015b85811161186557604051637066b6f360e11b8152600481018290526001600160a01b0386169063e0cd6de69060240160006040518083038186803b15801561173557600080fd5b505afa158015611749573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117719190810190611b43565b8361177d600184611f30565b8151811061179b57634e487b7160e01b600052603260045260246000fd5b602090810291909101015260405163d8c4dc8b60e01b8152600481018290526001600160a01b0386169063d8c4dc8b9060240160206040518083038186803b1580156117e657600080fd5b505afa1580156117fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181e9190611bd3565b8261182a600184611f30565b8151811061184857634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061185d81611f77565b9150506116ee565b505b6101408301919091526101c0820152949350505050565b6000546201000090046001600160a01b031633146118f65760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610213565b565b604051806103e001604052806060815260200160608152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581526020016000151581526020016000815260200160608152602001606081526020016000815260200160008152602001606081526020016000151581526020016000151581526020016000151581526020016000151581526020016000151581526020016000151581526020016000815260200160006001600160a01b0316815260200160006001600160a01b031681526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b600060208284031215611a15578081fd5b8135611a2081611fbe565b9392505050565b600060208284031215611a38578081fd5b8151611a2081611fbe565b60008060408385031215611a55578081fd5b8235611a6081611fbe565b91506020830135611a7081611fbe565b809150509250929050565b60006020808385031215611a8d578182fd5b825167ffffffffffffffff80821115611aa4578384fd5b818501915085601f830112611ab7578384fd5b815181811115611ac957611ac9611fa8565b8060051b9150611ada848301611eff565b8181528481019084860184860187018a1015611af4578788fd5b8795505b83861015611b16578051835260019590950194918601918601611af8565b5098975050505050505050565b600060208284031215611b34578081fd5b81518015158114611a20578182fd5b600060208284031215611b54578081fd5b815167ffffffffffffffff80821115611b6b578283fd5b818401915084601f830112611b7e578283fd5b815181811115611b9057611b90611fa8565b611ba3601f8201601f1916602001611eff565b9150808252856020828501011115611bb9578384fd5b611bca816020840160208601611f47565b50949350505050565b600060208284031215611be4578081fd5b5051919050565b600082825180855260208086019550808260051b840101818601855b84811015611c3557601f19868403018952611c23838351611c7c565b98840198925090830190600101611c07565b5090979650505050505050565b6000815180845260208085019450808401835b83811015611c7157815187529582019590820190600101611c55565b509495945050505050565b60008151808452611c94816020860160208601611f47565b601f01601f19169290920160200192915050565b60208152600082516103e0806020850152611cc7610400850183611c7c565b91506020850151601f1980868503016040870152611ce58483611c7c565b93506040870151606087015260608701516080870152608087015160a087015260a087015160c087015260c08701519150611d2460e087018315159052565b60e08701519150610100611d3b8188018415159052565b8701519150610120611d508782018415159052565b80880151925050610140828188015280880151925050610160818786030181880152611d7c8584611beb565b945080880151925050610180818786030181880152611d9b8584611c42565b908801516101a0888101919091528801516101c08089019190915288015187820383016101e0808a01919091529195509250611dd78584611c42565b94508088015192505050610200611df18187018315159052565b8601519050610220611e068682018315159052565b8601519050610240611e1b8682018315159052565b8601519050610260611e308682018315159052565b8601519050610280611e458682018315159052565b86015190506102a0611e5a8682018315159052565b8601516102c08681019190915286015190506102e0611e83818701836001600160a01b03169052565b8601519050610300611e9f868201836001600160a01b03169052565b860151610320868101919091528601516103408087019190915286015161036080870191909152860151610380808701919091528601516103a0808701919091528601516103c08087019190915290950151151593019290925250919050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611f2857611f28611fa8565b604052919050565b600082821015611f4257611f42611f92565b500390565b60005b83811015611f62578181015183820152602001611f4a565b83811115611f71576000848401525b50505050565b6000600019821415611f8b57611f8b611f92565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611fd357600080fd5b5056fea2646970667358221220172f4e9405d2ebb50d74e5c5c57b780c37fb072ca03399a1cd9ec22b6672e45964736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.