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:
GamesOddsReceiver
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)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; // internal import "../../utils/proxy/solidity-0.8.0/ProxyOwned.sol"; import "../../utils/proxy/solidity-0.8.0/ProxyPausable.sol"; // interface import "../../interfaces/ITherundownConsumer.sol"; import "../../interfaces/IGamesOddsObtainer.sol"; /// @title Recieve odds from a bots and cast to contract odds /// @author gruja contract GamesOddsReceiver is Initializable, ProxyOwned, ProxyPausable { ITherundownConsumer public consumer; IGamesOddsObtainer public obtainer; mapping(address => bool) public whitelistedAddresses; /// @notice public initialize proxy method /// @param _owner future owner of a contract function initialize( address _owner, address _consumer, address _obtainer, address[] memory _whitelistAddresses ) public initializer { setOwner(_owner); consumer = ITherundownConsumer(_consumer); obtainer = IGamesOddsObtainer(_obtainer); for (uint i; i < _whitelistAddresses.length; i++) { whitelistedAddresses[_whitelistAddresses[i]] = true; } } function fulfillGamesOdds( bytes32[] memory _gameIds, int24[] memory _mainOdds, int16[] memory _spreadLines, int24[] memory _spreadOdds, uint24[] memory _totalLines, int24[] memory _totalOdds ) external isAddressWhitelisted { for (uint i = 0; i < _gameIds.length; i++) { IGamesOddsObtainer.GameOdds memory game = _castToGameOdds( i, _gameIds[i], _mainOdds, _spreadLines, _spreadOdds, _totalLines, _totalOdds ); // game needs to be fulfilled and market needed to be created if (consumer.gameFulfilledCreated(_gameIds[i]) && consumer.marketPerGameId(_gameIds[i]) != address(0)) { uint sportId = consumer.sportsIdPerGame(_gameIds[i]); obtainer.obtainOdds( _gameIds[i], game, sportId, consumer.marketPerGameId(_gameIds[i]), consumer.isSportTwoPositionsSport(sportId), false ); } } } function pauseMarketsBasedOnPlayersReport(address[] memory _mainMarkets) external isAddressWhitelisted { for (uint i = 0; i < _mainMarkets.length; i++) { bytes32 _id = consumer.gameIdPerMarket(_mainMarkets[i]); IGamesOddsObtainer.GameOdds memory game = _castToGameOdds( 0, _id, new int24[](3), new int16[](2), new int24[](2), new uint24[](2), new int24[](2) ); // game needs to be fulfilled and market needed to be created if (consumer.gameFulfilledCreated(_id) && _mainMarkets[i] != address(0)) { uint sportId = consumer.sportsIdPerGame(_id); obtainer.obtainOdds(_id, game, sportId, _mainMarkets[i], consumer.isSportTwoPositionsSport(sportId), true); } } } function _castToGameOdds( uint index, bytes32 _gameId, int24[] memory _mainOdds, int16[] memory _spreadLines, int24[] memory _spreadOdds, uint24[] memory _totalLines, int24[] memory _totalOdds ) internal returns (IGamesOddsObtainer.GameOdds memory) { return IGamesOddsObtainer.GameOdds( _gameId, _mainOdds[index * 3], _mainOdds[index * 3 + 1], _mainOdds[index * 3 + 2], _spreadLines[index * 2], _spreadOdds[index * 2], _spreadLines[index * 2 + 1], _spreadOdds[index * 2 + 1], _totalLines[index * 2], _totalOdds[index * 2], _totalLines[index * 2 + 1], _totalOdds[index * 2 + 1] ); } /// @notice sets the consumer contract address, which only owner can execute /// @param _consumer address of a consumer contract function setConsumerAddress(address _consumer) external onlyOwner { require(_consumer != address(0), "Invalid address"); consumer = ITherundownConsumer(_consumer); emit NewConsumerAddress(_consumer); } /// @notice sets the obtainer contract address, which only owner can execute /// @param _obtainer address of a obtainer contract function setObtainerAddress(address _obtainer) external onlyOwner { require(_obtainer != address(0), "Invalid address"); obtainer = IGamesOddsObtainer(_obtainer); emit NewObtainerAddress(_obtainer); } /// @notice adding/removing whitelist address depending on a flag /// @param _whitelistAddresses addresses that needed to be whitelisted/ ore removed from WL /// @param _flag adding or removing from whitelist (true: add, false: remove) function addToWhitelist(address[] memory _whitelistAddresses, bool _flag) external onlyOwner { require(_whitelistAddresses.length > 0, "Whitelisted addresses cannot be empty"); for (uint256 index = 0; index < _whitelistAddresses.length; index++) { require(_whitelistAddresses[index] != address(0), "Can't be zero address"); // only if current flag is different, if same skip it if (whitelistedAddresses[_whitelistAddresses[index]] != _flag) { whitelistedAddresses[_whitelistAddresses[index]] = _flag; emit AddedIntoWhitelist(_whitelistAddresses[index], _flag); } } } modifier isAddressWhitelisted() { require(whitelistedAddresses[msg.sender], "Whitelisted address"); _; } event NewObtainerAddress(address _obtainer); event NewConsumerAddress(address _consumer); event AddedIntoWhitelist(address _whitelistAddress, bool _flag); }
// 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 // 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 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // Inheritance import "./ProxyOwned.sol"; // Clone of syntetix contract without constructor contract ProxyPausable is ProxyOwned { uint public lastPauseTime; bool public paused; /** * @notice Change the paused state of the contract * @dev Only the contract owner may call this. */ function setPaused(bool _paused) external onlyOwner { // Ensure we're actually changing the state before we do anything if (_paused == paused) { return; } // Set our paused state. paused = _paused; // If applicable, set the last pause time. if (paused) { lastPauseTime = block.timestamp; } // Let everyone know that our pause state has changed. emit PauseChanged(paused); } event PauseChanged(bool isPaused); modifier notPaused { require(!paused, "This action cannot be performed while the contract is paused"); _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface ITherundownConsumer { struct GameCreate { bytes32 gameId; uint256 startTime; int24 homeOdds; int24 awayOdds; int24 drawOdds; string homeTeam; string awayTeam; } // view functions function supportedSport(uint _sportId) external view returns (bool); function gameOnADate(bytes32 _gameId) external view returns (uint); function isGameResolvedOrCanceled(bytes32 _gameId) external view returns (bool); function getNormalizedOddsForMarket(address _market) external view returns (uint[] memory); function getGamesPerDatePerSport(uint _sportId, uint _date) external view returns (bytes32[] memory); function getGamePropsForOdds(address _market) external view returns ( uint, uint, bytes32 ); function gameIdPerMarket(address _market) external view returns (bytes32); function getGameCreatedById(bytes32 _gameId) external view returns (GameCreate memory); function isChildMarket(address _market) external view returns (bool); function gameFulfilledCreated(bytes32 _gameId) external view returns (bool); function playerProps() external view returns (address); function oddsObtainer() external view returns (address); // write functions function fulfillGamesCreated( bytes32 _requestId, bytes[] memory _games, uint _sportsId, uint _date ) external; function fulfillGamesResolved( bytes32 _requestId, bytes[] memory _games, uint _sportsId ) external; function fulfillGamesOdds(bytes32 _requestId, bytes[] memory _games) external; function setPausedByCanceledStatus(address _market, bool _flag) external; function setGameIdPerChildMarket(bytes32 _gameId, address _child) external; function pauseOrUnpauseMarket(address _market, bool _pause) external; function pauseOrUnpauseMarketForPlayerProps( address _market, bool _pause, bool _invalidOdds, bool _circuitBreakerMain ) external; function setChildMarkets( bytes32 _gameId, address _main, address _child, bool _isSpread, int16 _spreadHome, uint24 _totalOver ) external; function resolveMarketManually( address _market, uint _outcome, uint8 _homeScore, uint8 _awayScore, bool _usebackupOdds ) external; function getOddsForGame(bytes32 _gameId) external view returns ( int24, int24, int24 ); function sportsIdPerGame(bytes32 _gameId) external view returns (uint); function getGameStartTime(bytes32 _gameId) external view returns (uint256); function getLastUpdatedFromGameResolve(bytes32 _gameId) external view returns (uint40); function marketPerGameId(bytes32 _gameId) external view returns (address); function marketResolved(address _market) external view returns (bool); function marketCanceled(address _market) external view returns (bool); function invalidOdds(address _market) external view returns (bool); function isPausedByCanceledStatus(address _market) external view returns (bool); function isSportOnADate(uint _date, uint _sportId) external view returns (bool); function isSportTwoPositionsSport(uint _sportsId) external view returns (bool); function marketForTeamName(string memory _teamName) external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IGamesOddsObtainer { struct GameOdds { bytes32 gameId; int24 homeOdds; int24 awayOdds; int24 drawOdds; int16 spreadHome; int24 spreadHomeOdds; int16 spreadAway; int24 spreadAwayOdds; uint24 totalOver; int24 totalOverOdds; uint24 totalUnder; int24 totalUnderOdds; } // view function getActiveChildMarketsFromParent(address _parent) external view returns (address, address); function getSpreadTotalsChildMarketsFromParent(address _parent) external view returns ( uint numOfSpreadMarkets, address[] memory spreadMarkets, uint numOfTotalsMarkets, address[] memory totalMarkets ); function areOddsValid( bytes32 _gameId, bool _useBackup, bool _isTwoPositional ) external view returns (bool); function invalidOdds(address _market) external view returns (bool); function playersReportTimestamp(address _market) external view returns (uint); function getNormalizedOdds(bytes32 _gameId) external view returns (uint[] memory); function getNormalizedOddsForMarket(address _market) external view returns (uint[] memory); function getOddsForGames(bytes32[] memory _gameIds) external view returns (int24[] memory odds); function mainMarketChildMarketIndex(address _main, uint _index) external view returns (address); function numberOfChildMarkets(address _main) external view returns (uint); function mainMarketSpreadChildMarket(address _main, int16 _spread) external view returns (address); function mainMarketTotalChildMarket(address _main, uint24 _total) external view returns (address); function childMarketMainMarket(address _market) external view returns (address); function childMarketTotal(address _market) external view returns (uint24); function currentActiveTotalChildMarket(address _main) external view returns (address); function currentActiveSpreadChildMarket(address _main) external view returns (address); function isSpreadChildMarket(address _child) external view returns (bool); function childMarketCreated(address _child) external view returns (bool); function getOddsForGame(bytes32 _gameId) external view returns ( int24, int24, int24, int24, int24, int24, int24 ); function getLinesForGame(bytes32 _gameId) external view returns ( int16, int16, uint24, uint24 ); // executable function obtainOdds( bytes32 requestId, GameOdds memory _game, uint _sportId, address _main, bool _isTwoPositional, bool _isPlayersReport ) external; function setFirstOdds( bytes32 _gameId, int24 _homeOdds, int24 _awayOdds, int24 _drawOdds ) external; function setFirstNormalizedOdds(bytes32 _gameId, address _market) external; function setBackupOddsAsMainOddsForGame(bytes32 _gameId) external; function pauseUnpauseChildMarkets(address _main, bool _flag) external; function pauseUnpauseCurrentActiveChildMarket( bytes32 _gameId, address _main, bool _flag ) external; function resolveChildMarkets( address _market, uint _outcome, uint8 _homeScore, uint8 _awayScore ) external; function setChildMarketGameId(bytes32 gameId, address market) external; }
// 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; }
// 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); } } } }
{ "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":"_whitelistAddress","type":"address"},{"indexed":false,"internalType":"bool","name":"_flag","type":"bool"}],"name":"AddedIntoWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_consumer","type":"address"}],"name":"NewConsumerAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_obtainer","type":"address"}],"name":"NewObtainerAddress","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":"bool","name":"isPaused","type":"bool"}],"name":"PauseChanged","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelistAddresses","type":"address[]"},{"internalType":"bool","name":"_flag","type":"bool"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"consumer","outputs":[{"internalType":"contract ITherundownConsumer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_gameIds","type":"bytes32[]"},{"internalType":"int24[]","name":"_mainOdds","type":"int24[]"},{"internalType":"int16[]","name":"_spreadLines","type":"int16[]"},{"internalType":"int24[]","name":"_spreadOdds","type":"int24[]"},{"internalType":"uint24[]","name":"_totalLines","type":"uint24[]"},{"internalType":"int24[]","name":"_totalOdds","type":"int24[]"}],"name":"fulfillGamesOdds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_consumer","type":"address"},{"internalType":"address","name":"_obtainer","type":"address"},{"internalType":"address[]","name":"_whitelistAddresses","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastPauseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"obtainer","outputs":[{"internalType":"contract IGamesOddsObtainer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_mainMarkets","type":"address[]"}],"name":"pauseMarketsBasedOnPlayersReport","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_consumer","type":"address"}],"name":"setConsumerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_obtainer","type":"address"}],"name":"setObtainerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"transferOwnershipAtInit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50611f7e806100206000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80635d7412fd116100a2578063b4fd729611610071578063b4fd72961461024a578063c3b83f5f14610262578063e6bfbfd814610275578063efe2c8a414610288578063fc4d83a11461029b57600080fd5b80635d7412fd146101ff57806379ba5097146102125780638da5cb5b1461021a57806391b4ded91461023357600080fd5b8063408ae585116100e9578063408ae5851461018e57806343124995146101a157806353a47bb7146101b457806357fa5081146101df5780635c975abb146101f257600080fd5b806306c933d81461011b57806313af4035146101535780631627540c1461016857806316c38b3c1461017b575b600080fd5b61013e610129366004611a77565b60056020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b610166610161366004611a77565b6102ae565b005b610166610176366004611a77565b6103ee565b610166610189366004611ca2565b610444565b61016661019c366004611b64565b6104ba565b6101666101af366004611bb4565b6106f6565b6001546101c7906001600160a01b031681565b6040516001600160a01b03909116815260200161014a565b6101666101ed366004611a77565b610bc1565b60035461013e9060ff1681565b6004546101c7906001600160a01b031681565b610166610c3d565b6000546101c7906201000090046001600160a01b031681565b61023c60025481565b60405190815260200161014a565b6003546101c79061010090046001600160a01b031681565b610166610270366004611a77565b610d3a565b610166610283366004611ab6565b610e31565b610166610296366004611a77565b610fad565b6101666102a9366004611b29565b611031565b6001600160a01b0381166103095760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600154600160a01b900460ff16156103755760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b6064820152608401610300565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b6103f661148c565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020016103e3565b61044c61148c565b60035460ff16151581151514156104605750565b6003805460ff191682151590811790915560ff161561047e57426002555b60035460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5906020016103e3565b50565b6104c261148c565b60008251116105215760405162461bcd60e51b815260206004820152602560248201527f57686974656c6973746564206164647265737365732063616e6e6f7420626520604482015264656d70747960d81b6064820152608401610300565b60005b82518110156106f15760006001600160a01b031683828151811061055857634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614156105af5760405162461bcd60e51b815260206004820152601560248201527443616e2774206265207a65726f206164647265737360581b6044820152606401610300565b811515600560008584815181106105d657634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff161515146106df57816005600085848151811061062957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507f58d7a3ccc34541e162fcfc87b84be7b78c34d1e1e7f15de6e4dd67d0fe70aecd8382815181106106a957634e487b7160e01b600052603260045260246000fd5b6020026020010151836040516106d69291906001600160a01b039290921682521515602082015260400190565b60405180910390a15b806106e981611ede565b915050610524565b505050565b3360009081526005602052604090205460ff1661074b5760405162461bcd60e51b815260206004820152601360248201527257686974656c6973746564206164647265737360681b6044820152606401610300565b60005b8651811015610bb857600061078f8289848151811061077d57634e487b7160e01b600052603260045260246000fd5b60200260200101518989898989611506565b9050600360019054906101000a90046001600160a01b03166001600160a01b03166367674b148984815181106107d557634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016107fb91815260200190565b60206040518083038186803b15801561081357600080fd5b505afa158015610827573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084b9190611cbe565b80156109115750600354885160009161010090046001600160a01b03169063f89c6f18908b908690811061088f57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016108b591815260200190565b60206040518083038186803b1580156108cd57600080fd5b505afa1580156108e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109059190611a9a565b6001600160a01b031614155b15610ba5576000600360019054906101000a90046001600160a01b03166001600160a01b03166370aadcc48a858151811061095c57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161098291815260200190565b60206040518083038186803b15801561099a57600080fd5b505afa1580156109ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d29190611cda565b6004548a519192506001600160a01b0316906329bfb6cd908b9086908110610a0a57634e487b7160e01b600052603260045260246000fd5b60200260200101518484600360019054906101000a90046001600160a01b03166001600160a01b031663f89c6f188f8a81518110610a5857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610a7e91815260200190565b60206040518083038186803b158015610a9657600080fd5b505afa158015610aaa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ace9190611a9a565b60035460405163be27f89d60e01b8152600481018990526101009091046001600160a01b03169063be27f89d9060240160206040518083038186803b158015610b1657600080fd5b505afa158015610b2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4e9190611cbe565b60006040518763ffffffff1660e01b8152600401610b7196959493929190611cf2565b600060405180830381600087803b158015610b8b57600080fd5b505af1158015610b9f573d6000803e3d6000fd5b50505050505b5080610bb081611ede565b91505061074e565b50505050505050565b610bc961148c565b6001600160a01b038116610bef5760405162461bcd60e51b815260040161030090611e29565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f9aba0b0687cee6f6112358c0b3ce99e8237c38737e09cf1a71f3142f0d5910ba906020016103e3565b6001546001600160a01b03163314610cb55760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610300565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b610d4261148c565b6001600160a01b038116610d685760405162461bcd60e51b815260040161030090611e29565b600154600160a81b900460ff1615610db85760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b6044820152606401610300565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91016103e3565b600054610100900460ff16610e4c5760005460ff1615610e50565b303b155b610eb35760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610300565b600054610100900460ff16158015610ed5576000805461ffff19166101011790555b610ede856102ae565b60038054610100600160a81b0319166101006001600160a01b038781169190910291909117909155600480546001600160a01b03191691851691909117905560005b8251811015610f9357600160056000858481518110610f4f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610f8b81611ede565b915050610f20565b508015610fa6576000805461ff00191690555b5050505050565b610fb561148c565b6001600160a01b038116610fdb5760405162461bcd60e51b815260040161030090611e29565b60038054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f5f56489645cc15092ffab877840903cb7715aca3464f50d3e323ed6465777bbb906020016103e3565b3360009081526005602052604090205460ff166110865760405162461bcd60e51b815260206004820152601360248201527257686974656c6973746564206164647265737360681b6044820152606401610300565b60005b8151811015611488576000600360019054906101000a90046001600160a01b03166001600160a01b031663e7015ab28484815181106110d857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161110b91906001600160a01b0391909116815260200190565b60206040518083038186803b15801561112357600080fd5b505afa158015611137573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115b9190611cda565b6040805160038082526080820190925291925060009161120491839185916020820160608036833750506040805160028082526060820183529092509060208301908036833750506040805160028082526060820183529092509060208301908036833750506040805160028082526060820183529092509060208301908036833750506040805160028082526060820183529092509060208301908036833701905050611506565b6003546040516319d9d2c560e21b81526004810185905291925061010090046001600160a01b0316906367674b149060240160206040518083038186803b15801561124e57600080fd5b505afa158015611262573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112869190611cbe565b80156112cc575060006001600160a01b03168484815181106112b857634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614155b1561147357600354604051631c2ab73160e21b81526004810184905260009161010090046001600160a01b0316906370aadcc49060240160206040518083038186803b15801561131b57600080fd5b505afa15801561132f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113539190611cda565b60045486519192506001600160a01b0316906329bfb6cd908590859085908a908a90811061139157634e487b7160e01b600052603260045260246000fd5b602090810291909101015160035460405163be27f89d60e01b8152600481018990526101009091046001600160a01b03169063be27f89d9060240160206040518083038186803b1580156113e457600080fd5b505afa1580156113f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141c9190611cbe565b60016040518763ffffffff1660e01b815260040161143f96959493929190611cf2565b600060405180830381600087803b15801561145957600080fd5b505af115801561146d573d6000803e3d6000fd5b50505050505b5050808061148090611ede565b915050611089565b5050565b6000546201000090046001600160a01b031633146115045760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610300565b565b6040805161018081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810191909152604051806101800160405280888152602001878a60036115879190611ebf565b815181106115a557634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152602001878a60036115c39190611ebf565b6115ce906001611ea7565b815181106115ec57634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152602001878a600361160a9190611ebf565b611615906002611ea7565b8151811061163357634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152602001868a60026116519190611ebf565b8151811061166f57634e487b7160e01b600052603260045260246000fd5b602002602001015160010b8152602001858a600261168d9190611ebf565b815181106116ab57634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152602001868a60026116c99190611ebf565b6116d4906001611ea7565b815181106116f257634e487b7160e01b600052603260045260246000fd5b602002602001015160010b8152602001858a60026117109190611ebf565b61171b906001611ea7565b8151811061173957634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152602001848a60026117579190611ebf565b8151811061177557634e487b7160e01b600052603260045260246000fd5b602002602001015162ffffff168152602001838a60026117959190611ebf565b815181106117b357634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152602001848a60026117d19190611ebf565b6117dc906001611ea7565b815181106117fa57634e487b7160e01b600052603260045260246000fd5b602002602001015162ffffff168152602001838a600261181a9190611ebf565b611825906001611ea7565b8151811061184357634e487b7160e01b600052603260045260246000fd5b602002602001015160020b81525090505b979650505050505050565b600082601f83011261186f578081fd5b8135602061188461187f83611e83565b611e52565b80838252828201915082860187848660051b89010111156118a3578586fd5b855b858110156118ca5781356118b881611f25565b845292840192908401906001016118a5565b5090979650505050505050565b600082601f8301126118e7578081fd5b813560206118f761187f83611e83565b80838252828201915082860187848660051b8901011115611916578586fd5b855b858110156118ca57813584529284019290840190600101611918565b600082601f830112611944578081fd5b8135602061195461187f83611e83565b80838252828201915082860187848660051b8901011115611973578586fd5b855b858110156118ca5781358060010b811461198d578788fd5b84529284019290840190600101611975565b600082601f8301126119af578081fd5b813560206119bf61187f83611e83565b80838252828201915082860187848660051b89010111156119de578586fd5b855b858110156118ca5781358060020b81146119f8578788fd5b845292840192908401906001016119e0565b600082601f830112611a1a578081fd5b81356020611a2a61187f83611e83565b80838252828201915082860187848660051b8901011115611a49578586fd5b855b858110156118ca57813562ffffff81168114611a65578788fd5b84529284019290840190600101611a4b565b600060208284031215611a88578081fd5b8135611a9381611f25565b9392505050565b600060208284031215611aab578081fd5b8151611a9381611f25565b60008060008060808587031215611acb578283fd5b8435611ad681611f25565b93506020850135611ae681611f25565b92506040850135611af681611f25565b9150606085013567ffffffffffffffff811115611b11578182fd5b611b1d8782880161185f565b91505092959194509250565b600060208284031215611b3a578081fd5b813567ffffffffffffffff811115611b50578182fd5b611b5c8482850161185f565b949350505050565b60008060408385031215611b76578182fd5b823567ffffffffffffffff811115611b8c578283fd5b611b988582860161185f565b9250506020830135611ba981611f3a565b809150509250929050565b60008060008060008060c08789031215611bcc578384fd5b863567ffffffffffffffff80821115611be3578586fd5b611bef8a838b016118d7565b97506020890135915080821115611c04578586fd5b611c108a838b0161199f565b96506040890135915080821115611c25578586fd5b611c318a838b01611934565b95506060890135915080821115611c46578384fd5b611c528a838b0161199f565b94506080890135915080821115611c67578384fd5b611c738a838b01611a0a565b935060a0890135915080821115611c88578283fd5b50611c9589828a0161199f565b9150509295509295509295565b600060208284031215611cb3578081fd5b8135611a9381611f3a565b600060208284031215611ccf578081fd5b8151611a9381611f3a565b600060208284031215611ceb578081fd5b5051919050565b600061022082019050878252865160208301526020870151611d19604084018260020b9052565b506040870151611d2e606084018260020b9052565b506060870151611d43608084018260020b9052565b506080870151611d5860a084018260010b9052565b5060a0870151611d6d60c084018260020b9052565b5060c0870151611d8260e084018260010b9052565b5060e0870151610100611d998185018360020b9052565b8801519050610120611db18482018362ffffff169052565b8801519050610140611dc78482018360020b9052565b8801519050610160611ddf8482018362ffffff169052565b8801519050611df461018084018260020b9052565b50856101a0830152611e126101c08301866001600160a01b03169052565b8315156101e0830152821515610200830152611854565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715611e7b57611e7b611f0f565b604052919050565b600067ffffffffffffffff821115611e9d57611e9d611f0f565b5060051b60200190565b60008219821115611eba57611eba611ef9565b500190565b6000816000190483118215151615611ed957611ed9611ef9565b500290565b6000600019821415611ef257611ef2611ef9565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146104b757600080fd5b80151581146104b757600080fdfea26469706673582212204e1f89bc391d1b87590342938f58c8d7e456d4a68877bfda7d8d433fad13145b64736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c80635d7412fd116100a2578063b4fd729611610071578063b4fd72961461024a578063c3b83f5f14610262578063e6bfbfd814610275578063efe2c8a414610288578063fc4d83a11461029b57600080fd5b80635d7412fd146101ff57806379ba5097146102125780638da5cb5b1461021a57806391b4ded91461023357600080fd5b8063408ae585116100e9578063408ae5851461018e57806343124995146101a157806353a47bb7146101b457806357fa5081146101df5780635c975abb146101f257600080fd5b806306c933d81461011b57806313af4035146101535780631627540c1461016857806316c38b3c1461017b575b600080fd5b61013e610129366004611a77565b60056020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b610166610161366004611a77565b6102ae565b005b610166610176366004611a77565b6103ee565b610166610189366004611ca2565b610444565b61016661019c366004611b64565b6104ba565b6101666101af366004611bb4565b6106f6565b6001546101c7906001600160a01b031681565b6040516001600160a01b03909116815260200161014a565b6101666101ed366004611a77565b610bc1565b60035461013e9060ff1681565b6004546101c7906001600160a01b031681565b610166610c3d565b6000546101c7906201000090046001600160a01b031681565b61023c60025481565b60405190815260200161014a565b6003546101c79061010090046001600160a01b031681565b610166610270366004611a77565b610d3a565b610166610283366004611ab6565b610e31565b610166610296366004611a77565b610fad565b6101666102a9366004611b29565b611031565b6001600160a01b0381166103095760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600154600160a01b900460ff16156103755760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b6064820152608401610300565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b6103f661148c565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020016103e3565b61044c61148c565b60035460ff16151581151514156104605750565b6003805460ff191682151590811790915560ff161561047e57426002555b60035460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5906020016103e3565b50565b6104c261148c565b60008251116105215760405162461bcd60e51b815260206004820152602560248201527f57686974656c6973746564206164647265737365732063616e6e6f7420626520604482015264656d70747960d81b6064820152608401610300565b60005b82518110156106f15760006001600160a01b031683828151811061055857634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614156105af5760405162461bcd60e51b815260206004820152601560248201527443616e2774206265207a65726f206164647265737360581b6044820152606401610300565b811515600560008584815181106105d657634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff161515146106df57816005600085848151811061062957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507f58d7a3ccc34541e162fcfc87b84be7b78c34d1e1e7f15de6e4dd67d0fe70aecd8382815181106106a957634e487b7160e01b600052603260045260246000fd5b6020026020010151836040516106d69291906001600160a01b039290921682521515602082015260400190565b60405180910390a15b806106e981611ede565b915050610524565b505050565b3360009081526005602052604090205460ff1661074b5760405162461bcd60e51b815260206004820152601360248201527257686974656c6973746564206164647265737360681b6044820152606401610300565b60005b8651811015610bb857600061078f8289848151811061077d57634e487b7160e01b600052603260045260246000fd5b60200260200101518989898989611506565b9050600360019054906101000a90046001600160a01b03166001600160a01b03166367674b148984815181106107d557634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016107fb91815260200190565b60206040518083038186803b15801561081357600080fd5b505afa158015610827573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084b9190611cbe565b80156109115750600354885160009161010090046001600160a01b03169063f89c6f18908b908690811061088f57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016108b591815260200190565b60206040518083038186803b1580156108cd57600080fd5b505afa1580156108e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109059190611a9a565b6001600160a01b031614155b15610ba5576000600360019054906101000a90046001600160a01b03166001600160a01b03166370aadcc48a858151811061095c57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161098291815260200190565b60206040518083038186803b15801561099a57600080fd5b505afa1580156109ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d29190611cda565b6004548a519192506001600160a01b0316906329bfb6cd908b9086908110610a0a57634e487b7160e01b600052603260045260246000fd5b60200260200101518484600360019054906101000a90046001600160a01b03166001600160a01b031663f89c6f188f8a81518110610a5857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610a7e91815260200190565b60206040518083038186803b158015610a9657600080fd5b505afa158015610aaa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ace9190611a9a565b60035460405163be27f89d60e01b8152600481018990526101009091046001600160a01b03169063be27f89d9060240160206040518083038186803b158015610b1657600080fd5b505afa158015610b2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4e9190611cbe565b60006040518763ffffffff1660e01b8152600401610b7196959493929190611cf2565b600060405180830381600087803b158015610b8b57600080fd5b505af1158015610b9f573d6000803e3d6000fd5b50505050505b5080610bb081611ede565b91505061074e565b50505050505050565b610bc961148c565b6001600160a01b038116610bef5760405162461bcd60e51b815260040161030090611e29565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f9aba0b0687cee6f6112358c0b3ce99e8237c38737e09cf1a71f3142f0d5910ba906020016103e3565b6001546001600160a01b03163314610cb55760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610300565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b610d4261148c565b6001600160a01b038116610d685760405162461bcd60e51b815260040161030090611e29565b600154600160a81b900460ff1615610db85760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b6044820152606401610300565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91016103e3565b600054610100900460ff16610e4c5760005460ff1615610e50565b303b155b610eb35760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610300565b600054610100900460ff16158015610ed5576000805461ffff19166101011790555b610ede856102ae565b60038054610100600160a81b0319166101006001600160a01b038781169190910291909117909155600480546001600160a01b03191691851691909117905560005b8251811015610f9357600160056000858481518110610f4f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610f8b81611ede565b915050610f20565b508015610fa6576000805461ff00191690555b5050505050565b610fb561148c565b6001600160a01b038116610fdb5760405162461bcd60e51b815260040161030090611e29565b60038054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f5f56489645cc15092ffab877840903cb7715aca3464f50d3e323ed6465777bbb906020016103e3565b3360009081526005602052604090205460ff166110865760405162461bcd60e51b815260206004820152601360248201527257686974656c6973746564206164647265737360681b6044820152606401610300565b60005b8151811015611488576000600360019054906101000a90046001600160a01b03166001600160a01b031663e7015ab28484815181106110d857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161110b91906001600160a01b0391909116815260200190565b60206040518083038186803b15801561112357600080fd5b505afa158015611137573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115b9190611cda565b6040805160038082526080820190925291925060009161120491839185916020820160608036833750506040805160028082526060820183529092509060208301908036833750506040805160028082526060820183529092509060208301908036833750506040805160028082526060820183529092509060208301908036833750506040805160028082526060820183529092509060208301908036833701905050611506565b6003546040516319d9d2c560e21b81526004810185905291925061010090046001600160a01b0316906367674b149060240160206040518083038186803b15801561124e57600080fd5b505afa158015611262573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112869190611cbe565b80156112cc575060006001600160a01b03168484815181106112b857634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614155b1561147357600354604051631c2ab73160e21b81526004810184905260009161010090046001600160a01b0316906370aadcc49060240160206040518083038186803b15801561131b57600080fd5b505afa15801561132f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113539190611cda565b60045486519192506001600160a01b0316906329bfb6cd908590859085908a908a90811061139157634e487b7160e01b600052603260045260246000fd5b602090810291909101015160035460405163be27f89d60e01b8152600481018990526101009091046001600160a01b03169063be27f89d9060240160206040518083038186803b1580156113e457600080fd5b505afa1580156113f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141c9190611cbe565b60016040518763ffffffff1660e01b815260040161143f96959493929190611cf2565b600060405180830381600087803b15801561145957600080fd5b505af115801561146d573d6000803e3d6000fd5b50505050505b5050808061148090611ede565b915050611089565b5050565b6000546201000090046001600160a01b031633146115045760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610300565b565b6040805161018081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810191909152604051806101800160405280888152602001878a60036115879190611ebf565b815181106115a557634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152602001878a60036115c39190611ebf565b6115ce906001611ea7565b815181106115ec57634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152602001878a600361160a9190611ebf565b611615906002611ea7565b8151811061163357634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152602001868a60026116519190611ebf565b8151811061166f57634e487b7160e01b600052603260045260246000fd5b602002602001015160010b8152602001858a600261168d9190611ebf565b815181106116ab57634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152602001868a60026116c99190611ebf565b6116d4906001611ea7565b815181106116f257634e487b7160e01b600052603260045260246000fd5b602002602001015160010b8152602001858a60026117109190611ebf565b61171b906001611ea7565b8151811061173957634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152602001848a60026117579190611ebf565b8151811061177557634e487b7160e01b600052603260045260246000fd5b602002602001015162ffffff168152602001838a60026117959190611ebf565b815181106117b357634e487b7160e01b600052603260045260246000fd5b602002602001015160020b8152602001848a60026117d19190611ebf565b6117dc906001611ea7565b815181106117fa57634e487b7160e01b600052603260045260246000fd5b602002602001015162ffffff168152602001838a600261181a9190611ebf565b611825906001611ea7565b8151811061184357634e487b7160e01b600052603260045260246000fd5b602002602001015160020b81525090505b979650505050505050565b600082601f83011261186f578081fd5b8135602061188461187f83611e83565b611e52565b80838252828201915082860187848660051b89010111156118a3578586fd5b855b858110156118ca5781356118b881611f25565b845292840192908401906001016118a5565b5090979650505050505050565b600082601f8301126118e7578081fd5b813560206118f761187f83611e83565b80838252828201915082860187848660051b8901011115611916578586fd5b855b858110156118ca57813584529284019290840190600101611918565b600082601f830112611944578081fd5b8135602061195461187f83611e83565b80838252828201915082860187848660051b8901011115611973578586fd5b855b858110156118ca5781358060010b811461198d578788fd5b84529284019290840190600101611975565b600082601f8301126119af578081fd5b813560206119bf61187f83611e83565b80838252828201915082860187848660051b89010111156119de578586fd5b855b858110156118ca5781358060020b81146119f8578788fd5b845292840192908401906001016119e0565b600082601f830112611a1a578081fd5b81356020611a2a61187f83611e83565b80838252828201915082860187848660051b8901011115611a49578586fd5b855b858110156118ca57813562ffffff81168114611a65578788fd5b84529284019290840190600101611a4b565b600060208284031215611a88578081fd5b8135611a9381611f25565b9392505050565b600060208284031215611aab578081fd5b8151611a9381611f25565b60008060008060808587031215611acb578283fd5b8435611ad681611f25565b93506020850135611ae681611f25565b92506040850135611af681611f25565b9150606085013567ffffffffffffffff811115611b11578182fd5b611b1d8782880161185f565b91505092959194509250565b600060208284031215611b3a578081fd5b813567ffffffffffffffff811115611b50578182fd5b611b5c8482850161185f565b949350505050565b60008060408385031215611b76578182fd5b823567ffffffffffffffff811115611b8c578283fd5b611b988582860161185f565b9250506020830135611ba981611f3a565b809150509250929050565b60008060008060008060c08789031215611bcc578384fd5b863567ffffffffffffffff80821115611be3578586fd5b611bef8a838b016118d7565b97506020890135915080821115611c04578586fd5b611c108a838b0161199f565b96506040890135915080821115611c25578586fd5b611c318a838b01611934565b95506060890135915080821115611c46578384fd5b611c528a838b0161199f565b94506080890135915080821115611c67578384fd5b611c738a838b01611a0a565b935060a0890135915080821115611c88578283fd5b50611c9589828a0161199f565b9150509295509295509295565b600060208284031215611cb3578081fd5b8135611a9381611f3a565b600060208284031215611ccf578081fd5b8151611a9381611f3a565b600060208284031215611ceb578081fd5b5051919050565b600061022082019050878252865160208301526020870151611d19604084018260020b9052565b506040870151611d2e606084018260020b9052565b506060870151611d43608084018260020b9052565b506080870151611d5860a084018260010b9052565b5060a0870151611d6d60c084018260020b9052565b5060c0870151611d8260e084018260010b9052565b5060e0870151610100611d998185018360020b9052565b8801519050610120611db18482018362ffffff169052565b8801519050610140611dc78482018360020b9052565b8801519050610160611ddf8482018362ffffff169052565b8801519050611df461018084018260020b9052565b50856101a0830152611e126101c08301866001600160a01b03169052565b8315156101e0830152821515610200830152611854565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715611e7b57611e7b611f0f565b604052919050565b600067ffffffffffffffff821115611e9d57611e9d611f0f565b5060051b60200190565b60008219821115611eba57611eba611ef9565b500190565b6000816000190483118215151615611ed957611ed9611ef9565b500290565b6000600019821415611ef257611ef2611ef9565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146104b757600080fd5b80151581146104b757600080fdfea26469706673582212204e1f89bc391d1b87590342938f58c8d7e456d4a68877bfda7d8d433fad13145b64736f6c63430008040033
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.