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:
ExoticRewards
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 ExoticRewards is Initializable, ProxyOwned, PausableUpgradeable, ProxyReentrancyGuard { using SafeMathUpgradeable for uint; using SafeERC20Upgradeable for IERC20Upgradeable; IExoticPositionalMarketManager public marketManager; IERC20Upgradeable public paymentToken; mapping(address => uint) public marketIssuedReward; function initialize(address _owner, address _managerAddress) public initializer { setOwner(_owner); initNonReentrant(); marketManager = IExoticPositionalMarketManager(_managerAddress); } function sendRewardToDisputoraddress( address _market, address _disputorAddress, uint _amount ) external onlyOracleCouncilManagerAndOwner { require(marketManager.isActiveMarket(_market), "Not active market."); require(_amount <= IERC20Upgradeable(marketManager.paymentToken()).balanceOf(address(this)), "Amount exceeds balance"); require(_amount > 0 && _amount <= IExoticPositionalMarket(_market).arbitraryRewardForDisputor(), "Zero or high amount"); require(_disputorAddress != address(0), "Invalid disputor"); marketIssuedReward[_market] = marketIssuedReward[_market].add(_amount); IERC20Upgradeable(marketManager.paymentToken()).transfer(_disputorAddress, _amount); emit RewardIssued(_market, _disputorAddress, _amount); } function setMarketManager(address _managerAddress) external onlyOwner { require(_managerAddress != address(0), "Invalid Manager"); marketManager = IExoticPositionalMarketManager(_managerAddress); emit NewManagerAddress(_managerAddress); } // function setPaymentToken(address _paymentToken) external onlyOwner { // require(_paymentToken != address(0), "Invalid address"); // paymentToken = IERC20Upgradeable(_paymentToken); // emit NewPaymentToken(_paymentToken); // } modifier onlyOracleCouncilManagerAndOwner() { require( msg.sender == marketManager.oracleCouncilAddress() || msg.sender == address(marketManager) || msg.sender == owner, "Not OC/Manager/Owner" ); require(address(marketManager) != address(0), "Invalid Manager"); require(marketManager.oracleCouncilAddress() != address(0), "Invalid OC"); _; } receive() external payable {} fallback() external payable {} event NewPaymentToken(address paymentTokenAddress); event NewManagerAddress(address managerAddress); event RewardIssued(address market, address disputorAddress, uint amount); }
// 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 paused() external view returns (bool); 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
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"managerAddress","type":"address"}],"name":"NewManagerAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"paymentTokenAddress","type":"address"}],"name":"NewPaymentToken","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":"market","type":"address"},{"indexed":false,"internalType":"address","name":"disputorAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardIssued","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initNonReentrant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_managerAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"marketIssuedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketManager","outputs":[{"internalType":"contract IExoticPositionalMarketManager","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":[],"name":"paymentToken","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_market","type":"address"},{"internalType":"address","name":"_disputorAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"sendRewardToDisputoraddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_managerAddress","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"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b5061111a806100206000396000f3fe6080604052600436106100d55760003560e01c80636948452611610079578063c3b83f5f11610056578063c3b83f5f14610259578063d82aff1114610279578063ddb55ff214610299578063ebc79772146102b957005b806369484526146101e357806379ba50971461021e5780638da5cb5b1461023357005b806341ed2c12116100b257806341ed2c121461015b578063485cc9551461018057806353a47bb7146101a05780635c975abb146101c057005b806313af4035146100de5780631627540c146100fe5780633013ce291461011e57005b366100dc57005b005b3480156100ea57600080fd5b506100dc6100f9366004610fc0565b6102ce565b34801561010a57600080fd5b506100dc610119366004610fc0565b61040e565b34801561012a57600080fd5b5060685461013e906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561016757600080fd5b5060675461013e9061010090046001600160a01b031681565b34801561018c57600080fd5b506100dc61019b366004610ff8565b610464565b3480156101ac57600080fd5b5060015461013e906001600160a01b031681565b3480156101cc57600080fd5b5060345460ff166040519015158152602001610152565b3480156101ef57600080fd5b506102106101fe366004610fc0565b60696020526000908152604090205481565b604051908152602001610152565b34801561022a57600080fd5b506100dc610550565b34801561023f57600080fd5b5060005461013e906201000090046001600160a01b031681565b34801561026557600080fd5b506100dc610274366004610fc0565b61064d565b34801561028557600080fd5b506100dc610294366004610fc0565b610766565b3480156102a557600080fd5b506100dc6102b4366004611030565b61080c565b3480156102c557600080fd5b506100dc610ed5565b6001600160a01b0381166103295760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600154600160a01b900460ff16156103955760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b6064820152608401610320565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b610416610f33565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2290602001610403565b600054610100900460ff1661047f5760005460ff1615610483565b303b155b6104e65760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610320565b600054610100900460ff16158015610508576000805461ffff19166101011790555b610511836102ce565b610519610ed5565b60678054610100600160a81b0319166101006001600160a01b03851602179055801561054b576000805461ff00191690555b505050565b6001546001600160a01b031633146105c85760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610320565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b610655610f33565b6001600160a01b03811661069d5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610320565b600154600160a81b900460ff16156106ed5760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b6044820152606401610320565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9101610403565b61076e610f33565b6001600160a01b0381166107b65760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b21026b0b730b3b2b960891b6044820152606401610320565b60678054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f154e089317c4af354b1797cbc6b5e25eec4bdd82fd25292b9b8ede870b7d056e90602001610403565b606760019054906101000a90046001600160a01b03166001600160a01b03166307cf018c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561085a57600080fd5b505afa15801561086e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108929190610fdc565b6001600160a01b0316336001600160a01b031614806108c0575060675461010090046001600160a01b031633145b806108db57506000546201000090046001600160a01b031633145b61091e5760405162461bcd60e51b81526020600482015260146024820152732737ba1027a197a6b0b730b3b2b917a7bbb732b960611b6044820152606401610320565b60675461010090046001600160a01b031661096d5760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b21026b0b730b3b2b960891b6044820152606401610320565b606754604080516301f3c06360e21b8152905160009261010090046001600160a01b0316916307cf018c916004808301926020929190829003018186803b1580156109b757600080fd5b505afa1580156109cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ef9190610fdc565b6001600160a01b03161415610a335760405162461bcd60e51b815260206004820152600a602482015269496e76616c6964204f4360b01b6044820152606401610320565b606754604051633761c52760e11b81526001600160a01b03858116600483015261010090920490911690636ec38a4e9060240160206040518083038186803b158015610a7e57600080fd5b505afa158015610a92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab69190611070565b610af75760405162461bcd60e51b81526020600482015260126024820152712737ba1030b1ba34bb329036b0b935b2ba1760711b6044820152606401610320565b606760019054906101000a90046001600160a01b03166001600160a01b0316633013ce296040518163ffffffff1660e01b815260040160206040518083038186803b158015610b4557600080fd5b505afa158015610b59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7d9190610fdc565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b158015610bbe57600080fd5b505afa158015610bd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf69190611090565b811115610c3e5760405162461bcd60e51b8152602060048201526016602482015275416d6f756e7420657863656564732062616c616e636560501b6044820152606401610320565b600081118015610cbe5750826001600160a01b031663465591f96040518163ffffffff1660e01b815260040160206040518083038186803b158015610c8257600080fd5b505afa158015610c96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cba9190611090565b8111155b610d005760405162461bcd60e51b815260206004820152601360248201527216995c9bc81bdc881a1a59da08185b5bdd5b9d606a1b6044820152606401610320565b6001600160a01b038216610d495760405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b2103234b9b83aba37b960811b6044820152606401610320565b6001600160a01b038316600090815260696020526040902054610d6c9082610fad565b6001600160a01b03808516600090815260696020908152604091829020939093556067548151633013ce2960e01b8152915161010090910490921692633013ce2992600480840193829003018186803b158015610dc857600080fd5b505afa158015610ddc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e009190610fdc565b60405163a9059cbb60e01b81526001600160a01b03848116600483015260248201849052919091169063a9059cbb90604401602060405180830381600087803b158015610e4c57600080fd5b505af1158015610e60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e849190611070565b50604080516001600160a01b038086168252841660208201529081018290527ff969167343826283ebaf3abbf1c8792d1179ef0262324df944b56023dc60700b9060600160405180910390a1505050565b60675460ff1615610f1e5760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610320565b6067805460ff19166001908117909155606655565b6000546201000090046001600160a01b03163314610fab5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610320565b565b6000610fb982846110a8565b9392505050565b600060208284031215610fd1578081fd5b8135610fb9816110cc565b600060208284031215610fed578081fd5b8151610fb9816110cc565b6000806040838503121561100a578081fd5b8235611015816110cc565b91506020830135611025816110cc565b809150509250929050565b600080600060608486031215611044578081fd5b833561104f816110cc565b9250602084013561105f816110cc565b929592945050506040919091013590565b600060208284031215611081578081fd5b81518015158114610fb9578182fd5b6000602082840312156110a1578081fd5b5051919050565b600082198211156110c757634e487b7160e01b81526011600452602481fd5b500190565b6001600160a01b03811681146110e157600080fd5b5056fea2646970667358221220b4d1c789ec988e37a95f8855c0a67090a75d8337ff9bca81445baf1cb5f1c2cc64736f6c63430008040033
Deployed Bytecode
0x6080604052600436106100d55760003560e01c80636948452611610079578063c3b83f5f11610056578063c3b83f5f14610259578063d82aff1114610279578063ddb55ff214610299578063ebc79772146102b957005b806369484526146101e357806379ba50971461021e5780638da5cb5b1461023357005b806341ed2c12116100b257806341ed2c121461015b578063485cc9551461018057806353a47bb7146101a05780635c975abb146101c057005b806313af4035146100de5780631627540c146100fe5780633013ce291461011e57005b366100dc57005b005b3480156100ea57600080fd5b506100dc6100f9366004610fc0565b6102ce565b34801561010a57600080fd5b506100dc610119366004610fc0565b61040e565b34801561012a57600080fd5b5060685461013e906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561016757600080fd5b5060675461013e9061010090046001600160a01b031681565b34801561018c57600080fd5b506100dc61019b366004610ff8565b610464565b3480156101ac57600080fd5b5060015461013e906001600160a01b031681565b3480156101cc57600080fd5b5060345460ff166040519015158152602001610152565b3480156101ef57600080fd5b506102106101fe366004610fc0565b60696020526000908152604090205481565b604051908152602001610152565b34801561022a57600080fd5b506100dc610550565b34801561023f57600080fd5b5060005461013e906201000090046001600160a01b031681565b34801561026557600080fd5b506100dc610274366004610fc0565b61064d565b34801561028557600080fd5b506100dc610294366004610fc0565b610766565b3480156102a557600080fd5b506100dc6102b4366004611030565b61080c565b3480156102c557600080fd5b506100dc610ed5565b6001600160a01b0381166103295760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600154600160a01b900460ff16156103955760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b6064820152608401610320565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b610416610f33565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2290602001610403565b600054610100900460ff1661047f5760005460ff1615610483565b303b155b6104e65760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610320565b600054610100900460ff16158015610508576000805461ffff19166101011790555b610511836102ce565b610519610ed5565b60678054610100600160a81b0319166101006001600160a01b03851602179055801561054b576000805461ff00191690555b505050565b6001546001600160a01b031633146105c85760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610320565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b610655610f33565b6001600160a01b03811661069d5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610320565b600154600160a81b900460ff16156106ed5760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b6044820152606401610320565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9101610403565b61076e610f33565b6001600160a01b0381166107b65760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b21026b0b730b3b2b960891b6044820152606401610320565b60678054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f154e089317c4af354b1797cbc6b5e25eec4bdd82fd25292b9b8ede870b7d056e90602001610403565b606760019054906101000a90046001600160a01b03166001600160a01b03166307cf018c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561085a57600080fd5b505afa15801561086e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108929190610fdc565b6001600160a01b0316336001600160a01b031614806108c0575060675461010090046001600160a01b031633145b806108db57506000546201000090046001600160a01b031633145b61091e5760405162461bcd60e51b81526020600482015260146024820152732737ba1027a197a6b0b730b3b2b917a7bbb732b960611b6044820152606401610320565b60675461010090046001600160a01b031661096d5760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b21026b0b730b3b2b960891b6044820152606401610320565b606754604080516301f3c06360e21b8152905160009261010090046001600160a01b0316916307cf018c916004808301926020929190829003018186803b1580156109b757600080fd5b505afa1580156109cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ef9190610fdc565b6001600160a01b03161415610a335760405162461bcd60e51b815260206004820152600a602482015269496e76616c6964204f4360b01b6044820152606401610320565b606754604051633761c52760e11b81526001600160a01b03858116600483015261010090920490911690636ec38a4e9060240160206040518083038186803b158015610a7e57600080fd5b505afa158015610a92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab69190611070565b610af75760405162461bcd60e51b81526020600482015260126024820152712737ba1030b1ba34bb329036b0b935b2ba1760711b6044820152606401610320565b606760019054906101000a90046001600160a01b03166001600160a01b0316633013ce296040518163ffffffff1660e01b815260040160206040518083038186803b158015610b4557600080fd5b505afa158015610b59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7d9190610fdc565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b158015610bbe57600080fd5b505afa158015610bd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf69190611090565b811115610c3e5760405162461bcd60e51b8152602060048201526016602482015275416d6f756e7420657863656564732062616c616e636560501b6044820152606401610320565b600081118015610cbe5750826001600160a01b031663465591f96040518163ffffffff1660e01b815260040160206040518083038186803b158015610c8257600080fd5b505afa158015610c96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cba9190611090565b8111155b610d005760405162461bcd60e51b815260206004820152601360248201527216995c9bc81bdc881a1a59da08185b5bdd5b9d606a1b6044820152606401610320565b6001600160a01b038216610d495760405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b2103234b9b83aba37b960811b6044820152606401610320565b6001600160a01b038316600090815260696020526040902054610d6c9082610fad565b6001600160a01b03808516600090815260696020908152604091829020939093556067548151633013ce2960e01b8152915161010090910490921692633013ce2992600480840193829003018186803b158015610dc857600080fd5b505afa158015610ddc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e009190610fdc565b60405163a9059cbb60e01b81526001600160a01b03848116600483015260248201849052919091169063a9059cbb90604401602060405180830381600087803b158015610e4c57600080fd5b505af1158015610e60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e849190611070565b50604080516001600160a01b038086168252841660208201529081018290527ff969167343826283ebaf3abbf1c8792d1179ef0262324df944b56023dc60700b9060600160405180910390a1505050565b60675460ff1615610f1e5760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610320565b6067805460ff19166001908117909155606655565b6000546201000090046001600160a01b03163314610fab5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610320565b565b6000610fb982846110a8565b9392505050565b600060208284031215610fd1578081fd5b8135610fb9816110cc565b600060208284031215610fed578081fd5b8151610fb9816110cc565b6000806040838503121561100a578081fd5b8235611015816110cc565b91506020830135611025816110cc565b809150509250929050565b600080600060608486031215611044578081fd5b833561104f816110cc565b9250602084013561105f816110cc565b929592945050506040919091013590565b600060208284031215611081578081fd5b81518015158114610fb9578182fd5b6000602082840312156110a1578081fd5b5051919050565b600082198211156110c757634e487b7160e01b81526011600452602481fd5b500190565b6001600160a01b03811681146110e157600080fd5b5056fea2646970667358221220b4d1c789ec988e37a95f8855c0a67090a75d8337ff9bca81445baf1cb5f1c2cc64736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.