Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- AggregatorProxy
- Optimization enabled
- true
- Compiler version
- v0.8.6+commit.11564f7e
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2024-08-16T09:03:54.877765Z
Constructor Arguments
000000000000000000000000d53b14ffd604a21e5f5bbc25b65089d5d7098d93
Arg [0] (address) : 0xd53b14ffd604a21e5f5bbc25b65089d5d7098d93
contracts/AggreagatorProxy.sol
// SPDX-License-Identifier: MITpragma solidity ^0.8.6;import "@openzeppelin/contracts/access/AccessControl.sol";import "./interfaces/AggregatorV2V3Interface.sol";/*** @title A trusted proxy for updating where current answers are read from* @notice This contract provides a consistent address for the* CurrentAnwerInterface but delegates where it reads from to the owner, who is* trusted to update it.*/contract AggregatorProxy is AggregatorV2V3Interface, AccessControl {struct Phase {uint16 id;AggregatorV2V3Interface aggregator;}Phase private currentPhase;AggregatorV2V3Interface public proposedAggregator;mapping(uint16 => AggregatorV2V3Interface) public phaseAggregators;uint256 constant private PHASE_OFFSET = 64;uint256 constant private PHASE_SIZE = 16;uint256 constant private MAX_ID = 2**(PHASE_OFFSET+PHASE_SIZE) - 1;bytes32 public constant ADMIN_ROLE = 0xa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775;constructor(address _aggregator) {_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);_setupRole(ADMIN_ROLE, msg.sender);setAggregator(_aggregator);}/*** @notice Reads the current answer from aggregator delegated to.** @dev #[deprecated] Use latestRoundData instead. This does not error if no* answer has been reached, it will simply return 0. Either wait to point to* an already answered Aggregator or use the recommended latestRoundData* instead which includes better verification information.*/
@openzeppelin/contracts/access/AccessControl.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)pragma solidity ^0.8.0;import "./IAccessControl.sol";import "../utils/Context.sol";import "../utils/Strings.sol";import "../utils/introspection/ERC165.sol";/*** @dev Contract module that allows children to implement role-based access* control mechanisms. This is a lightweight version that doesn't allow enumerating role* members except through off-chain means by accessing the contract event logs. Some* applications may benefit from on-chain enumerability, for those cases see* {AccessControlEnumerable}.** Roles are referred to by their `bytes32` identifier. These should be exposed* in the external API and be unique. The best way to achieve this is by* using `public constant` hash digests:** ```solidity* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");* ```** Roles can be used to represent a set of permissions. To restrict access to a* function call, use {hasRole}:** ```solidity* function foo() public {* require(hasRole(MY_ROLE, msg.sender));* ...* }* ```** Roles can be granted and revoked dynamically via the {grantRole} and* {revokeRole} functions. Each role has an associated admin role, and only* accounts that have a role's admin role can call {grantRole} and {revokeRole}.** By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means* that only accounts with this role will be able to grant or revoke other
@openzeppelin/contracts/access/IAccessControl.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)pragma solidity ^0.8.0;/*** @dev External interface of AccessControl declared to support ERC165 detection.*/interface IAccessControl {/*** @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`** `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite* {RoleAdminChanged} not being emitted signaling this.** _Available since v3.1._*/event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);/*** @dev Emitted when `account` is granted `role`.** `sender` is the account that originated the contract call, an admin role* bearer except when using {AccessControl-_setupRole}.*/event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);/*** @dev Emitted when `account` is revoked `role`.** `sender` is the account that originated the contract call:* - if using `revokeRole`, it is the admin role bearer* - if using `renounceRole`, it is the role bearer (i.e. `account`)*/event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);/*** @dev Returns `true` if `account` has been granted `role`.*/function hasRole(bytes32 role, address account) external view returns (bool);
@openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)pragma solidity ^0.8.0;/*** @dev Provides information about the current execution context, including the* sender of the transaction and its data. While these are generally available* via msg.sender and msg.data, they should not be accessed in such a direct* manner, since when dealing with meta-transactions the account sending and* paying for execution may not be the actual sender (as far as an application* is concerned).** This contract is only required for intermediate, library-like contracts.*/abstract contract Context {function _msgSender() internal view virtual returns (address) {return msg.sender;}function _msgData() internal view virtual returns (bytes calldata) {return msg.data;}function _contextSuffixLength() internal view virtual returns (uint256) {return 0;}}
@openzeppelin/contracts/utils/Strings.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)pragma solidity ^0.8.0;import "./math/Math.sol";import "./math/SignedMath.sol";/*** @dev String operations.*/library Strings {bytes16 private constant _SYMBOLS = "0123456789abcdef";uint8 private constant _ADDRESS_LENGTH = 20;/*** @dev Converts a `uint256` to its ASCII `string` decimal representation.*/function toString(uint256 value) internal pure returns (string memory) {unchecked {uint256 length = Math.log10(value) + 1;string memory buffer = new string(length);uint256 ptr;/// @solidity memory-safe-assemblyassembly {ptr := add(buffer, add(32, length))}while (true) {ptr--;/// @solidity memory-safe-assemblyassembly {mstore8(ptr, byte(mod(value, 10), _SYMBOLS))}value /= 10;if (value == 0) break;}return buffer;}}/**
@openzeppelin/contracts/utils/introspection/ERC165.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)pragma solidity ^0.8.0;import "./IERC165.sol";/*** @dev Implementation of the {IERC165} interface.** Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check* for the additional interface id that will be supported. For example:** ```solidity* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);* }* ```** Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.*/abstract contract ERC165 is IERC165 {/*** @dev See {IERC165-supportsInterface}.*/function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {return interfaceId == type(IERC165).interfaceId;}}
@openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)pragma solidity ^0.8.0;/*** @dev Interface of the ERC165 standard, as defined in the* https://eips.ethereum.org/EIPS/eip-165[EIP].** Implementers can declare support of contract interfaces, which can then be* queried by others ({ERC165Checker}).** For an implementation, see {ERC165}.*/interface IERC165 {/*** @dev Returns true if this contract implements the interface defined by* `interfaceId`. See the corresponding* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]* to learn more about how these ids are created.** This function call must use less than 30 000 gas.*/function supportsInterface(bytes4 interfaceId) external view returns (bool);}
@openzeppelin/contracts/utils/math/Math.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)pragma solidity ^0.8.0;/*** @dev Standard math utilities missing in the Solidity language.*/library Math {enum Rounding {Down, // Toward negative infinityUp, // Toward infinityZero // Toward zero}/*** @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.*
@openzeppelin/contracts/utils/math/SignedMath.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)pragma solidity ^0.8.0;/*** @dev Standard signed math utilities missing in the Solidity language.*/library SignedMath {/*** @dev Returns the largest of two signed numbers.*/function max(int256 a, int256 b) internal pure returns (int256) {return a > b ? a : b;}/*** @dev Returns the smallest of two signed numbers.*/function min(int256 a, int256 b) internal pure returns (int256) {return a < b ? a : b;}/*** @dev Returns the average of two signed numbers without overflow.* The result is rounded towards zero.*/function average(int256 a, int256 b) internal pure returns (int256) {// Formula from the book "Hacker's Delight"int256 x = (a & b) + ((a ^ b) >> 1);return x + (int256(uint256(x) >> 255) & (a ^ b));}/*** @dev Returns the absolute unsigned value of a signed value.*/function abs(int256 n) internal pure returns (uint256) {unchecked {// must be unchecked in order to support `n = type(int256).min`return uint256(n >= 0 ? n : -n);}
contracts/interfaces/AggregatorInterface.sol
// SPDX-License-Identifier: MITpragma solidity ^0.8.6;interface AggregatorInterface {function latestAnswer()externalviewreturns (int256);function latestTimestamp()externalviewreturns (uint256);function latestRound()externalviewreturns (uint256);function getAnswer(uint256 roundId)externalviewreturns (int256);function getTimestamp(uint256 roundId)externalviewreturns (uint256
contracts/interfaces/AggregatorV2V3Interface.sol
// SPDX-License-Identifier: MITpragma solidity ^0.8.6;import "./AggregatorInterface.sol";import "./AggregatorV3Interface.sol";interface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface{}
contracts/interfaces/AggregatorV3Interface.sol
// SPDX-License-Identifier: MITpragma solidity ^0.8.6;interface AggregatorV3Interface {function decimals()externalviewreturns (uint8);function description()externalviewreturns (string memory);function version()externalviewreturns (uint256);function getRoundData(uint80 _roundId)externalviewreturns (uint80 roundId,int256 answer,uint256 startedAt,uint256 updatedAt,uint80 answeredInRound);function latestRoundData()external
Compiler Settings
{"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata","devdoc","userdoc","storageLayout","evm.gasEstimates"],"":["ast"]}},"optimizer":{"runs":200,"enabled":true},"metadata":{"useLiteralContent":true},"libraries":{}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_aggregator","internalType":"address"}]},{"type":"event","name":"AnswerUpdated","inputs":[{"type":"int256","name":"current","internalType":"int256","indexed":true},{"type":"uint256","name":"roundId","internalType":"uint256","indexed":true},{"type":"uint256","name":"updatedAt","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"NewRound","inputs":[{"type":"uint256","name":"roundId","internalType":"uint256","indexed":true},{"type":"address","name":"startedBy","internalType":"address","indexed":true},{"type":"uint256","name":"startedAt","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"previousAdminRole","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"newAdminRole","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"aggregator","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"confirmAggregator","inputs":[{"type":"address","name":"_aggregator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"description","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"int256","name":"answer","internalType":"int256"}],"name":"getAnswer","inputs":[{"type":"uint256","name":"_roundId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint80","name":"roundId","internalType":"uint80"},{"type":"int256","name":"answer","internalType":"int256"},{"type":"uint256","name":"startedAt","internalType":"uint256"},{"type":"uint256","name":"updatedAt","internalType":"uint256"},{"type":"uint80","name":"answeredInRound","internalType":"uint80"}],"name":"getRoundData","inputs":[{"type":"uint80","name":"_roundId","internalType":"uint80"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"updatedAt","internalType":"uint256"}],"name":"getTimestamp","inputs":[{"type":"uint256","name":"_roundId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"grantRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"int256","name":"answer","internalType":"int256"}],"name":"latestAnswer","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"roundId","internalType":"uint256"}],"name":"latestRound","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint80","name":"roundId","internalType":"uint80"},{"type":"int256","name":"answer","internalType":"int256"},{"type":"uint256","name":"startedAt","internalType":"uint256"},{"type":"uint256","name":"updatedAt","internalType":"uint256"},{"type":"uint80","name":"answeredInRound","internalType":"uint80"}],"name":"latestRoundData","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"updatedAt","internalType":"uint256"}],"name":"latestTimestamp","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract AggregatorV2V3Interface"}],"name":"phaseAggregators","inputs":[{"type":"uint16","name":"","internalType":"uint16"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"","internalType":"uint16"}],"name":"phaseId","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"proposeAggregator","inputs":[{"type":"address","name":"_aggregator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract AggregatorV2V3Interface"}],"name":"proposedAggregator","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint80","name":"roundId","internalType":"uint80"},{"type":"int256","name":"answer","internalType":"int256"},{"type":"uint256","name":"startedAt","internalType":"uint256"},{"type":"uint256","name":"updatedAt","internalType":"uint256"},{"type":"uint80","name":"answeredInRound","internalType":"uint80"}],"name":"proposedGetRoundData","inputs":[{"type":"uint80","name":"_roundId","internalType":"uint80"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint80","name":"roundId","internalType":"uint80"},{"type":"int256","name":"answer","internalType":"int256"},{"type":"uint256","name":"startedAt","internalType":"uint256"},{"type":"uint256","name":"updatedAt","internalType":"uint256"},{"type":"uint80","name":"answeredInRound","internalType":"uint80"}],"name":"proposedLatestRoundData","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"version","inputs":[]}]
Contract Creation Code
0x60806040523480156200001157600080fd5b50604051620018fc380380620018fc8339810160408190526200003491620001a8565b620000416000336200007f565b6200006d7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336200007f565b62000078816200008f565b506200020f565b6200008b828262000108565b5050565b60018054600091620000a69161ffff1690620001da565b60408051808201825261ffff9092168083526001600160a01b039094166020928301819052600180546201000083026001600160b01b031990911687171790556000948552600390925290922080546001600160a01b03191690921790915550565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200008b576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001643390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600060208284031215620001bb57600080fd5b81516001600160a01b0381168114620001d357600080fd5b9392505050565b600061ffff8083168185168083038211156200020657634e487b7160e01b600052601160045260246000fd5b01949350505050565b6116dd806200021f6000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80638205bf6a116100de578063b5ab58dc11610097578063d547741f11610071578063d547741f146103aa578063e8c4be30146103bd578063f8a2abd3146103d0578063feaf968c146103e357600080fd5b8063b5ab58dc1461035b578063b633620c1461036e578063c15973041461038157600080fd5b80638205bf6a1461030a5780638f6b4d911461031257806391d148541461031a5780639a6fc8f51461032d578063a217fddf14610340578063a928c0961461034857600080fd5b806350d25bcd1161014b5780636001ac53116101255780636001ac531461027f578063668a0f02146102c65780637284e416146102ce57806375b238fc146102e357600080fd5b806350d25bcd1461025957806354fd4d501461026157806358303b101461026957600080fd5b806301ffc9a714610193578063245a7bfc146101bb578063248a9ca3146101e65780632f2ff15d14610217578063313ce5671461022c57806336568abe14610246575b600080fd5b6101a66101a1366004611256565b6103eb565b60405190151581526020015b60405180910390f35b6001546201000090046001600160a01b03165b6040516001600160a01b0390911681526020016101b2565b6102096101f4366004611211565b60009081526020819052604090206001015490565b6040519081526020016101b2565b61022a61022536600461122a565b610422565b005b61023461044c565b60405160ff90911681526020016101b2565b61022a61025436600461122a565b6104dc565b61020961055f565b6102096105ea565b60015460405161ffff90911681526020016101b2565b61029261028d36600461136a565b61063d565b604080516001600160501b03968716815260208101959095528401929092526060830152909116608082015260a0016101b2565b610209610736565b6102d66107fb565b6040516101b29190611477565b6102097fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b61020961088a565b6102926108dd565b6101a661032836600461122a565b6109d7565b61029261033b36600461136a565b610a00565b610209600081565b61022a6103563660046111f6565b610af0565b610209610369366004611211565b610b90565b61020961037c366004611211565b610c81565b6101ce61038f366004611346565b6003602052600090815260409020546001600160a01b031681565b61022a6103b836600461122a565b610d1d565b6002546101ce906001600160a01b031681565b61022a6103de3660046111f6565b610d42565b610292610d8f565b60006001600160e01b03198216637965db0b60e01b148061041c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60008281526020819052604090206001015461043d81610e5f565b6104478383610e6c565b505050565b6000600160000160029054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561049f57600080fd5b505afa1580156104b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d791906113df565b905090565b6001600160a01b03811633146105515760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61055b8282610ef0565b5050565b6000600160000160029054906101000a90046001600160a01b03166001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156105b257600080fd5b505afa1580156105c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d79190611280565b6000600160000160029054906101000a90046001600160a01b03166001600160a01b03166354fd4d506040518163ffffffff1660e01b815260040160206040518083038186803b1580156105b257600080fd5b60025460009081908190819081906001600160a01b03166106a05760405162461bcd60e51b815260206004820152601e60248201527f4e6f2070726f706f7365642061676772656761746f722070726573656e7400006044820152606401610548565b600254604051639a6fc8f560e01b81526001600160501b03881660048201526001600160a01b0390911690639a6fc8f59060240160a06040518083038186803b1580156106ec57600080fd5b505afa158015610700573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107249190611387565b939a9299509097509550909350915050565b60408051808201825260015461ffff8116808352620100009091046001600160a01b031660208084018290528451633345078160e11b815294516000956107ec94939263668a0f0292600480840193829003018186803b15801561079957600080fd5b505afa1580156107ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d19190611280565b67ffffffffffffffff1660409190911b61ffff60401b161790565b6001600160501b031691505090565b6060600160000160029054906101000a90046001600160a01b03166001600160a01b0316637284e4166040518163ffffffff1660e01b815260040160006040518083038186803b15801561084e57600080fd5b505afa158015610862573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104d79190810190611299565b6000600160000160029054906101000a90046001600160a01b03166001600160a01b0316638205bf6a6040518163ffffffff1660e01b815260040160206040518083038186803b1580156105b257600080fd5b60025460009081908190819081906001600160a01b03166109405760405162461bcd60e51b815260206004820152601e60248201527f4e6f2070726f706f7365642061676772656761746f722070726573656e7400006044820152606401610548565b600260009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561098e57600080fd5b505afa1580156109a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c69190611387565b945094509450945094509091929394565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000806000806000806000610a20886001600160501b0316604081901c91565b61ffff821660009081526003602052604090819020549051639a6fc8f560e01b815267ffffffffffffffff831660048201529294509092506001600160a01b031690639a6fc8f59060240160a06040518083038186803b158015610a8357600080fd5b505afa158015610a97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abb9190611387565b67ffffffffffffffff94851660409790971b61ffff60401b169687179d939c50919a5098509190911690921794509092505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610b1a81610e5f565b6002546001600160a01b03838116911614610b775760405162461bcd60e51b815260206004820152601b60248201527f496e76616c69642070726f706f7365642061676772656761746f7200000000006044820152606401610548565b600280546001600160a01b031916905561055b82610f55565b60006001610ba0601060406114d0565b610bab90600261152b565b610bb591906115f2565b821115610bc457506000919050565b61ffff604083811c91821660009081526003602052205483906001600160a01b031680610bf657506000949350505050565b604051632d6ad63760e21b815267ffffffffffffffff831660048201526001600160a01b0382169063b5ab58dc906024015b60206040518083038186803b158015610c4057600080fd5b505afa158015610c54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c789190611280565b95945050505050565b60006001610c91601060406114d0565b610c9c90600261152b565b610ca691906115f2565b821115610cb557506000919050565b61ffff604083811c91821660009081526003602052205483906001600160a01b031680610ce757506000949350505050565b604051632d8cd88360e21b815267ffffffffffffffff831660048201526001600160a01b0382169063b633620c90602401610c28565b600082815260208190526040902060010154610d3881610e5f565b6104478383610ef0565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610d6c81610e5f565b50600280546001600160a01b0319166001600160a01b0392909216919091179055565b60408051808201825260015461ffff811682526201000090046001600160a01b0316602082018190528251633fabe5a360e21b81529251600093849384938493849363feaf968c9160048083019260a0929190829003018186803b158015610df657600080fd5b505afa158015610e0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2e9190611387565b945161ffff60401b60409190911b1667ffffffffffffffff94851681179b939a509198509650919092161792509050565b610e698133610fcc565b50565b610e7682826109d7565b61055b576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610eac3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610efa82826109d7565b1561055b576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60018054600091610f6a9161ffff16906114aa565b60408051808201825261ffff9092168083526001600160a01b039094166020928301819052600180546201000083026001600160b01b031990911687171790556000948552600390925290922080546001600160a01b03191690921790915550565b610fd682826109d7565b61055b57610fe381611025565b610fee836020611037565b604051602001610fff929190611402565b60408051601f198184030181529082905262461bcd60e51b825261054891600401611477565b606061041c6001600160a01b03831660145b606060006110468360026115d3565b6110519060026114d0565b67ffffffffffffffff8111156110695761106961167c565b6040519080825280601f01601f191660200182016040528015611093576020820181803683370190505b509050600360fc1b816000815181106110ae576110ae611666565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106110dd576110dd611666565b60200101906001600160f81b031916908160001a90535060006111018460026115d3565b61110c9060016114d0565b90505b6001811115611184576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061114057611140611666565b1a60f81b82828151811061115657611156611666565b60200101906001600160f81b031916908160001a90535060049490941c9361117d81611639565b905061110f565b5083156111d35760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610548565b9392505050565b80356001600160a01b03811681146111f157600080fd5b919050565b60006020828403121561120857600080fd5b6111d3826111da565b60006020828403121561122357600080fd5b5035919050565b6000806040838503121561123d57600080fd5b8235915061124d602084016111da565b90509250929050565b60006020828403121561126857600080fd5b81356001600160e01b0319811681146111d357600080fd5b60006020828403121561129257600080fd5b5051919050565b6000602082840312156112ab57600080fd5b815167ffffffffffffffff808211156112c357600080fd5b818401915084601f8301126112d757600080fd5b8151818111156112e9576112e961167c565b604051601f8201601f19908116603f011681019083821181831017156113115761131161167c565b8160405282815287602084870101111561132a57600080fd5b61133b836020830160208801611609565b979650505050505050565b60006020828403121561135857600080fd5b813561ffff811681146111d357600080fd5b60006020828403121561137c57600080fd5b81356111d381611692565b600080600080600060a0868803121561139f57600080fd5b85516113aa81611692565b8095505060208601519350604086015192506060860151915060808601516113d181611692565b809150509295509295909350565b6000602082840312156113f157600080fd5b815160ff811681146111d357600080fd5b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161143a816017850160208801611609565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161146b816028840160208801611609565b01602801949350505050565b6020815260008251806020840152611496816040850160208701611609565b601f01601f19169190910160400192915050565b600061ffff8083168185168083038211156114c7576114c7611650565b01949350505050565b600082198211156114e3576114e3611650565b500190565b600181815b8085111561152357816000190482111561150957611509611650565b8085161561151657918102915b93841c93908002906114ed565b509250929050565b60006111d383836000826115415750600161041c565b8161154e5750600061041c565b8160018114611564576002811461156e5761158a565b600191505061041c565b60ff84111561157f5761157f611650565b50506001821b61041c565b5060208310610133831016604e8410600b84101617156115ad575081810a61041c565b6115b783836114e8565b80600019048211156115cb576115cb611650565b029392505050565b60008160001904831182151516156115ed576115ed611650565b500290565b60008282101561160457611604611650565b500390565b60005b8381101561162457818101518382015260200161160c565b83811115611633576000848401525b50505050565b60008161164857611648611650565b506000190190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160501b0381168114610e6957600080fdfea2646970667358221220c9d74c8090769a5f011cb566887443acebdff9a8376bfd58a59fa324308c5ce964736f6c63430008060033000000000000000000000000d53b14ffd604a21e5f5bbc25b65089d5d7098d93
Deployed ByteCode
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80638205bf6a116100de578063b5ab58dc11610097578063d547741f11610071578063d547741f146103aa578063e8c4be30146103bd578063f8a2abd3146103d0578063feaf968c146103e357600080fd5b8063b5ab58dc1461035b578063b633620c1461036e578063c15973041461038157600080fd5b80638205bf6a1461030a5780638f6b4d911461031257806391d148541461031a5780639a6fc8f51461032d578063a217fddf14610340578063a928c0961461034857600080fd5b806350d25bcd1161014b5780636001ac53116101255780636001ac531461027f578063668a0f02146102c65780637284e416146102ce57806375b238fc146102e357600080fd5b806350d25bcd1461025957806354fd4d501461026157806358303b101461026957600080fd5b806301ffc9a714610193578063245a7bfc146101bb578063248a9ca3146101e65780632f2ff15d14610217578063313ce5671461022c57806336568abe14610246575b600080fd5b6101a66101a1366004611256565b6103eb565b60405190151581526020015b60405180910390f35b6001546201000090046001600160a01b03165b6040516001600160a01b0390911681526020016101b2565b6102096101f4366004611211565b60009081526020819052604090206001015490565b6040519081526020016101b2565b61022a61022536600461122a565b610422565b005b61023461044c565b60405160ff90911681526020016101b2565b61022a61025436600461122a565b6104dc565b61020961055f565b6102096105ea565b60015460405161ffff90911681526020016101b2565b61029261028d36600461136a565b61063d565b604080516001600160501b03968716815260208101959095528401929092526060830152909116608082015260a0016101b2565b610209610736565b6102d66107fb565b6040516101b29190611477565b6102097fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b61020961088a565b6102926108dd565b6101a661032836600461122a565b6109d7565b61029261033b36600461136a565b610a00565b610209600081565b61022a6103563660046111f6565b610af0565b610209610369366004611211565b610b90565b61020961037c366004611211565b610c81565b6101ce61038f366004611346565b6003602052600090815260409020546001600160a01b031681565b61022a6103b836600461122a565b610d1d565b6002546101ce906001600160a01b031681565b61022a6103de3660046111f6565b610d42565b610292610d8f565b60006001600160e01b03198216637965db0b60e01b148061041c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60008281526020819052604090206001015461043d81610e5f565b6104478383610e6c565b505050565b6000600160000160029054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561049f57600080fd5b505afa1580156104b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d791906113df565b905090565b6001600160a01b03811633146105515760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61055b8282610ef0565b5050565b6000600160000160029054906101000a90046001600160a01b03166001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156105b257600080fd5b505afa1580156105c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d79190611280565b6000600160000160029054906101000a90046001600160a01b03166001600160a01b03166354fd4d506040518163ffffffff1660e01b815260040160206040518083038186803b1580156105b257600080fd5b60025460009081908190819081906001600160a01b03166106a05760405162461bcd60e51b815260206004820152601e60248201527f4e6f2070726f706f7365642061676772656761746f722070726573656e7400006044820152606401610548565b600254604051639a6fc8f560e01b81526001600160501b03881660048201526001600160a01b0390911690639a6fc8f59060240160a06040518083038186803b1580156106ec57600080fd5b505afa158015610700573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107249190611387565b939a9299509097509550909350915050565b60408051808201825260015461ffff8116808352620100009091046001600160a01b031660208084018290528451633345078160e11b815294516000956107ec94939263668a0f0292600480840193829003018186803b15801561079957600080fd5b505afa1580156107ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d19190611280565b67ffffffffffffffff1660409190911b61ffff60401b161790565b6001600160501b031691505090565b6060600160000160029054906101000a90046001600160a01b03166001600160a01b0316637284e4166040518163ffffffff1660e01b815260040160006040518083038186803b15801561084e57600080fd5b505afa158015610862573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104d79190810190611299565b6000600160000160029054906101000a90046001600160a01b03166001600160a01b0316638205bf6a6040518163ffffffff1660e01b815260040160206040518083038186803b1580156105b257600080fd5b60025460009081908190819081906001600160a01b03166109405760405162461bcd60e51b815260206004820152601e60248201527f4e6f2070726f706f7365642061676772656761746f722070726573656e7400006044820152606401610548565b600260009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561098e57600080fd5b505afa1580156109a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c69190611387565b945094509450945094509091929394565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000806000806000806000610a20886001600160501b0316604081901c91565b61ffff821660009081526003602052604090819020549051639a6fc8f560e01b815267ffffffffffffffff831660048201529294509092506001600160a01b031690639a6fc8f59060240160a06040518083038186803b158015610a8357600080fd5b505afa158015610a97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abb9190611387565b67ffffffffffffffff94851660409790971b61ffff60401b169687179d939c50919a5098509190911690921794509092505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610b1a81610e5f565b6002546001600160a01b03838116911614610b775760405162461bcd60e51b815260206004820152601b60248201527f496e76616c69642070726f706f7365642061676772656761746f7200000000006044820152606401610548565b600280546001600160a01b031916905561055b82610f55565b60006001610ba0601060406114d0565b610bab90600261152b565b610bb591906115f2565b821115610bc457506000919050565b61ffff604083811c91821660009081526003602052205483906001600160a01b031680610bf657506000949350505050565b604051632d6ad63760e21b815267ffffffffffffffff831660048201526001600160a01b0382169063b5ab58dc906024015b60206040518083038186803b158015610c4057600080fd5b505afa158015610c54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c789190611280565b95945050505050565b60006001610c91601060406114d0565b610c9c90600261152b565b610ca691906115f2565b821115610cb557506000919050565b61ffff604083811c91821660009081526003602052205483906001600160a01b031680610ce757506000949350505050565b604051632d8cd88360e21b815267ffffffffffffffff831660048201526001600160a01b0382169063b633620c90602401610c28565b600082815260208190526040902060010154610d3881610e5f565b6104478383610ef0565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610d6c81610e5f565b50600280546001600160a01b0319166001600160a01b0392909216919091179055565b60408051808201825260015461ffff811682526201000090046001600160a01b0316602082018190528251633fabe5a360e21b81529251600093849384938493849363feaf968c9160048083019260a0929190829003018186803b158015610df657600080fd5b505afa158015610e0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2e9190611387565b945161ffff60401b60409190911b1667ffffffffffffffff94851681179b939a509198509650919092161792509050565b610e698133610fcc565b50565b610e7682826109d7565b61055b576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610eac3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610efa82826109d7565b1561055b576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60018054600091610f6a9161ffff16906114aa565b60408051808201825261ffff9092168083526001600160a01b039094166020928301819052600180546201000083026001600160b01b031990911687171790556000948552600390925290922080546001600160a01b03191690921790915550565b610fd682826109d7565b61055b57610fe381611025565b610fee836020611037565b604051602001610fff929190611402565b60408051601f198184030181529082905262461bcd60e51b825261054891600401611477565b606061041c6001600160a01b03831660145b606060006110468360026115d3565b6110519060026114d0565b67ffffffffffffffff8111156110695761106961167c565b6040519080825280601f01601f191660200182016040528015611093576020820181803683370190505b509050600360fc1b816000815181106110ae576110ae611666565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106110dd576110dd611666565b60200101906001600160f81b031916908160001a90535060006111018460026115d3565b61110c9060016114d0565b90505b6001811115611184576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061114057611140611666565b1a60f81b82828151811061115657611156611666565b60200101906001600160f81b031916908160001a90535060049490941c9361117d81611639565b905061110f565b5083156111d35760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610548565b9392505050565b80356001600160a01b03811681146111f157600080fd5b919050565b60006020828403121561120857600080fd5b6111d3826111da565b60006020828403121561122357600080fd5b5035919050565b6000806040838503121561123d57600080fd5b8235915061124d602084016111da565b90509250929050565b60006020828403121561126857600080fd5b81356001600160e01b0319811681146111d357600080fd5b60006020828403121561129257600080fd5b5051919050565b6000602082840312156112ab57600080fd5b815167ffffffffffffffff808211156112c357600080fd5b818401915084601f8301126112d757600080fd5b8151818111156112e9576112e961167c565b604051601f8201601f19908116603f011681019083821181831017156113115761131161167c565b8160405282815287602084870101111561132a57600080fd5b61133b836020830160208801611609565b979650505050505050565b60006020828403121561135857600080fd5b813561ffff811681146111d357600080fd5b60006020828403121561137c57600080fd5b81356111d381611692565b600080600080600060a0868803121561139f57600080fd5b85516113aa81611692565b8095505060208601519350604086015192506060860151915060808601516113d181611692565b809150509295509295909350565b6000602082840312156113f157600080fd5b815160ff811681146111d357600080fd5b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161143a816017850160208801611609565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161146b816028840160208801611609565b01602801949350505050565b6020815260008251806020840152611496816040850160208701611609565b601f01601f19169190910160400192915050565b600061ffff8083168185168083038211156114c7576114c7611650565b01949350505050565b600082198211156114e3576114e3611650565b500190565b600181815b8085111561152357816000190482111561150957611509611650565b8085161561151657918102915b93841c93908002906114ed565b509250929050565b60006111d383836000826115415750600161041c565b8161154e5750600061041c565b8160018114611564576002811461156e5761158a565b600191505061041c565b60ff84111561157f5761157f611650565b50506001821b61041c565b5060208310610133831016604e8410600b84101617156115ad575081810a61041c565b6115b783836114e8565b80600019048211156115cb576115cb611650565b029392505050565b60008160001904831182151516156115ed576115ed611650565b500290565b60008282101561160457611604611650565b500390565b60005b8381101561162457818101518382015260200161160c565b83811115611633576000848401525b50505050565b60008161164857611648611650565b506000190190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160501b0381168114610e6957600080fdfea2646970667358221220c9d74c8090769a5f011cb566887443acebdff9a8376bfd58a59fa324308c5ce964736f6c63430008060033