ETH Price: $2,557.14 (+3.82%)

Contract

0x8b9D6D5bb4f63Ba41Aa0c6362D91F4BD16D024fa
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Execute Proposal199509402024-05-26 2:02:4795 days ago1716688967IN
0x8b9D6D5b...D16D024fa
0 ETH0.000289125.95000571
Vote Proposal199508862024-05-26 1:51:5995 days ago1716688319IN
0x8b9D6D5b...D16D024fa
0 ETH0.000546335.7936307
Vote Proposal199508282024-05-26 1:40:2395 days ago1716687623IN
0x8b9D6D5b...D16D024fa
0 ETH0.000909045.42874121
Vote Proposal196576972024-04-15 1:40:23136 days ago1713145223IN
0x8b9D6D5b...D16D024fa
0 ETH0.0018623211.12247846
Vote Proposal195934672024-04-06 1:40:23145 days ago1712367623IN
0x8b9D6D5b...D16D024fa
0 ETH0.0022798513.61512151
Vote Proposal193013792024-02-25 1:40:23186 days ago1708825223IN
0x8b9D6D5b...D16D024fa
0 ETH0.003803122.713491
Vote Proposal192728392024-02-21 1:40:23190 days ago1708479623IN
0x8b9D6D5b...D16D024fa
0 ETH0.0062116737.0956722
Vote Proposal192657012024-02-20 1:40:23191 days ago1708393223IN
0x8b9D6D5b...D16D024fa
0 ETH0.0052111831.1208503
Vote Proposal192585882024-02-19 1:40:23192 days ago1708306823IN
0x8b9D6D5b...D16D024fa
0 ETH0.003848122.98061791
Execute Proposal192514952024-02-18 1:40:35193 days ago1708220435IN
0x8b9D6D5b...D16D024fa
0 ETH0.000842317.33390415
Vote Proposal192514942024-02-18 1:40:23193 days ago1708220423IN
0x8b9D6D5b...D16D024fa
0 ETH0.0005011417.39849158
Vote Proposal192514942024-02-18 1:40:23193 days ago1708220423IN
0x8b9D6D5b...D16D024fa
0 ETH0.0016406717.39849158
Vote Proposal192514942024-02-18 1:40:23193 days ago1708220423IN
0x8b9D6D5b...D16D024fa
0 ETH0.0029133717.39849158
Execute Proposal192443802024-02-17 1:40:35194 days ago1708134035IN
0x8b9D6D5b...D16D024fa
0 ETH0.0009492619.53503209
Vote Proposal192443792024-02-17 1:40:23194 days ago1708134023IN
0x8b9D6D5b...D16D024fa
0 ETH0.000540618.76828141
Vote Proposal192443792024-02-17 1:40:23194 days ago1708134023IN
0x8b9D6D5b...D16D024fa
0 ETH0.0017698418.76828141
Vote Proposal192443792024-02-17 1:40:23194 days ago1708134023IN
0x8b9D6D5b...D16D024fa
0 ETH0.0031427418.76828141
Execute Proposal192372552024-02-16 1:40:35195 days ago1708047635IN
0x8b9D6D5b...D16D024fa
0 ETH0.0014289929.40732498
Vote Proposal192372542024-02-16 1:40:23195 days ago1708047623IN
0x8b9D6D5b...D16D024fa
0 ETH0.0007746326.90441716
Vote Proposal192372542024-02-16 1:40:23195 days ago1708047623IN
0x8b9D6D5b...D16D024fa
0 ETH0.0025367626.90441716
Vote Proposal192372542024-02-16 1:40:23195 days ago1708047623IN
0x8b9D6D5b...D16D024fa
0 ETH0.0045048226.90441716
Execute Proposal192301202024-02-15 1:40:35196 days ago1707961235IN
0x8b9D6D5b...D16D024fa
0 ETH0.0011390523.44071046
Vote Proposal192301192024-02-15 1:40:23196 days ago1707961223IN
0x8b9D6D5b...D16D024fa
0 ETH0.0006757923.46175538
Vote Proposal192301192024-02-15 1:40:23196 days ago1707961223IN
0x8b9D6D5b...D16D024fa
0 ETH0.0022124423.46175538
Vote Proposal192301192024-02-15 1:40:23196 days ago1707961223IN
0x8b9D6D5b...D16D024fa
0 ETH0.0039286723.46175538
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TBillPriceOracle

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, GNU GPLv3 license
File 1 of 9 : TBillPriceOracle.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity 0.8.10; 

import "./TOracle.sol";

interface IOracle {
    function getData() external view returns (uint256, bool);
}

/**
 * @title TBILL Price Oracle
 */
contract TBillPriceOracle is TOracle, IOracle {
    event UpdatedAvgPrice(
        uint256 price,
        bool valid
    );
    
    uint256 private constant VALIDITY_MASK = 2**(256-1);
    uint256 private constant PRICE_MASK = VALIDITY_MASK-1;
    uint8 public constant decimals = 18;

    uint256 private _tbillAvgPriceAndValidity; //1 bit validity then 255 bit price; updated ONLY daily. for more up-to-date info, view PriceRecords

    constructor(
        uint256 initialTbillPrice, 
        uint256 initialVoteThreshold, uint256 expiry, address[] memory initialOracles
    )
    TOracle(initialVoteThreshold, expiry, initialOracles)
    {
        _tbillAvgPriceAndValidity = initialTbillPrice;        
    }    

    function getData() external view returns (uint256 price, bool valid) {
        price = _tbillAvgPriceAndValidity & PRICE_MASK;
        valid = _tbillAvgPriceAndValidity & VALIDITY_MASK > 0;
    }
    function getTBillLastPrice() external view returns (uint256 price) {
        price = _tbillAvgPriceAndValidity & PRICE_MASK;
    }
    function getTBillLastPriceValid() external view returns (bool valid) {
        valid = _tbillAvgPriceAndValidity & VALIDITY_MASK > 0;
    }

    /**
        @notice should only be called by executeProposal, which has already verified the dataHash.
     */
    function onExecute(bytes calldata data) internal override {
        uint256 tbillAvgPriceAndValidity = uint256(bytes32(data[:32]));
        uint256 price = tbillAvgPriceAndValidity & PRICE_MASK;
        bool valid = tbillAvgPriceAndValidity & VALIDITY_MASK > 0;
        _tbillAvgPriceAndValidity = tbillAvgPriceAndValidity;
        emit UpdatedAvgPrice(price, valid);
    }    
}

File 2 of 9 : AccessControl.sol
// SPDX-License-Identifier: MIT

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:
 *
 * ```
 * 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}:
 *
 * ```
 * 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
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 9 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @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.
     */
    constructor() {
        _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());
    }
}

File 4 of 9 : IAccessControl.sol
// SPDX-License-Identifier: MIT

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);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 5 of 9 : Context.sol
// SPDX-License-Identifier: MIT

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;
    }
}

File 6 of 9 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 7 of 9 : ERC165.sol
// SPDX-License-Identifier: MIT

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;
    }
}

File 8 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT

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);
}

File 9 of 9 : TOracle.sol
// SPDX-License-Identifier: GPL-3.0
// TBILL Universal Oracle
// Based on ChainBridge voting.

pragma solidity 0.8.10; 

import "openzeppelin43/access/AccessControl.sol";
import "openzeppelin43/security/Pausable.sol";

/**
 * @title TBILL Universal Oracle
 * @notice Oracles vote on proposals using keccack256 data hash. 
 * @notice After vote threshold is met, execute should be called with the full data 
 * @notice within the expiration period to fire the onExecute function
 * @notice with the data less the proposalNumber header.
 */
abstract contract TOracle is Pausable, AccessControl {
    enum Vote {No, Yes}
    enum ProposalStatus {Inactive, Active, Passed, Executed, Cancelled}
    struct Proposal {
        ProposalStatus _status;
        bytes32 _dataHash;
        address[] _yesVotes;
        uint256 _proposedBlock;
    }


    event VoteThresholdChanged(uint256 indexed newThreshold);
    event OracleAdded(address indexed oracle);
    event OracleRemoved(address indexed oracle);
    event ProposalEvent(
        uint32 indexed proposalNumber,
        ProposalStatus indexed status,
        bytes32 dataHash
    );
    event ProposalVote(
        uint32 indexed proposalNumber,
        ProposalStatus indexed status
    );


    bytes32 public constant ORACLE_ROLE = keccak256("ORACLE_ROLE");

    uint256 public _voteThreshold; //number of votes required to pass a proposal
    uint256 public _expiry; //blocks after which to expire proposals
    uint256 public _totalOracles; //number of oracles
    uint256 public _executedCount;

    // proposalNumber => dataHash => Proposal, where proposalNumber is executedCount+1
    mapping(uint32 => mapping(bytes32 => Proposal)) public _proposals;
    // proposalNumber => dataHash => oracleAddress => bool, where proposalNumber is executedCount+1
    mapping(uint32 => mapping(bytes32 => mapping(address => bool))) public _hasVotedOnProposal;

    uint256[50] private ______gap; //leave space for upgrades;


    modifier onlyAdmin() {
        _onlyAdmin();
        _;
    }
    modifier onlyAdminOrOracle() {
        _onlyAdminOrOracle();
        _;
    }
    modifier onlyOracles() {
        _onlyOracles();
        _;
    }
    modifier onlySelf(){
        _onlySelf();
        _;
    }

    function _onlyAdminOrOracle() private view {
        require(
            hasRole(DEFAULT_ADMIN_ROLE, msg.sender) || hasRole(ORACLE_ROLE, msg.sender),
            "sender is not oracle or admin"
        );
    }
    function _onlyAdmin() private view {
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "sender doesn't have admin role");
    }
    function _onlyOracles() private view {
        require(hasRole(ORACLE_ROLE, msg.sender), "sender doesn't have oracle role");
    }
    function _onlySelf() private view {
        require(msg.sender == address(this), "Only self can call");
    }

    /**
        @notice Initializes oracle, creates and grants admin role, creates and grants oracle role.
        @param initialVoteThreshold Number of votes required to pass proposal.
        @param expiry Number of blocks after which an unexecuted proposal is cancelled.
        @param initialOracles Addresses that should be allowed to vote on proposals.
     */
    constructor(
        uint256 initialVoteThreshold,
        uint256 expiry,
        address[] memory initialOracles        
    ){
        _voteThreshold = initialVoteThreshold;
        _expiry = expiry;

        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setRoleAdmin(ORACLE_ROLE, DEFAULT_ADMIN_ROLE);
        for (uint256 i; i < initialOracles.length; i++){
            grantRole(ORACLE_ROLE, initialOracles[i]);
        }
        _totalOracles = initialOracles.length;
    }

    /**
        @notice Returns true if {checkAddress} has the oracle role.
        @param checkAddress Address to check.
     */
    function isOracle(address checkAddress) external view returns (bool) {
        return hasRole(ORACLE_ROLE, checkAddress);
    }

    /**
        @notice Removes admin role from {msg.sender} and grants it to {newAdmin}.
        @notice Only callable by an address that currently has the admin role.
        @param newAdmin Address that admin role will be granted to.
     */
    function renounceAdmin(address newAdmin) external onlyAdmin {
        grantRole(DEFAULT_ADMIN_ROLE, newAdmin);
        renounceRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    /**
        @notice Pauses executions, proposal creation and voting.
        @notice Only callable by an address that currently has the admin role.
     */
    function adminPause() external onlyAdmin {
        _pause();
    }

    /**
        @notice Unpauses executions, proposal creation and voting.
        @notice Only callable by an address that currently has the admin role.
     */
    function adminUnpause() external onlyAdmin {
        _unpause();
    }

    /**
        @notice Modifies the number of votes required for a proposal to be considered passed.
        @notice Only callable by an address that currently has the admin role.
        @param newThreshold Value {_voteThreshold} will be changed to.
        @notice Emits {VoteThresholdChanged} event.
     */
    function adminChangeVoteThreshold(uint256 newThreshold) external onlyAdmin {
        _voteThreshold = newThreshold;
        emit VoteThresholdChanged(newThreshold);
    }

    /**
        @notice Grants {oracleAddress} the oracle role and increases {_totalOracles} count.
        @notice Only callable by an address that currently has the admin role.
        @param oracleAddress Address of oracle to be added.
        @notice Emits {OracleAdded} event.
     */
    function adminAddOracle(address oracleAddress) external onlyAdmin {
        require(!hasRole(ORACLE_ROLE, oracleAddress), "addr already has oracle role!");
        grantRole(ORACLE_ROLE, oracleAddress);
        emit OracleAdded(oracleAddress);
        _totalOracles++;
    }

    /**
        @notice Removes oracle role for {oracleAddress} and decreases {_totalOracles} count.
        @notice Only callable by an address that currently has the admin role.
        @param oracleAddress Address of oracle to be removed.
        @notice Emits {OracleRemoved} event.
     */
    function adminRemoveOracle(address oracleAddress) external onlyAdmin {
        require(hasRole(ORACLE_ROLE, oracleAddress), "addr doesn't have oracle role!");
        revokeRole(ORACLE_ROLE, oracleAddress);
        emit OracleRemoved(oracleAddress);
        _totalOracles--;
    }
    
    /**
        @notice Returns a proposal.
        @param proposalNumber The number of proposals that will have been completed if this proposal is executed (_executedCount+1).
        @param dataHash Hash of data that will be provided when proposal is sent for execution.
        @return Proposal which consists of:
        - _dataHash Hash of data to be provided when deposit proposal is executed.
        - _yesVotes Number of votes in favor of proposal.
        - _proposedBlock
        - _status Current status of proposal.
     */
    function getProposal(
        uint32 proposalNumber,
        bytes32 dataHash
    ) external view returns (Proposal memory) {
        return _proposals[proposalNumber][dataHash];
    }

    /**
        @notice When called, {msg.sender} will be marked as voting in favor of proposal.
        @notice Only callable by oracles when is not paused.
        @param proposalNumber The number of proposals that will have been completed if this proposal is executed (_executedCount+1).
        @param dataHash Hash of encodePacked data that will be provided when proposal is sent for execution.
        @notice Proposal must not have already been passed or executed.
        @notice {msg.sender} must not have already voted on proposal.
        @notice Emits {ProposalEvent} event with status indicating the proposal status.
        @notice Emits {ProposalVote} event.
     */
    function voteProposal(uint32 proposalNumber, bytes32 dataHash) external onlyOracles whenNotPaused {
        Proposal storage proposal = _proposals[proposalNumber][dataHash];

        //proposal already passed/executed/cancelled
        if (proposal._status > ProposalStatus.Active) return;
        
        require(!_hasVotedOnProposal[proposalNumber][dataHash][msg.sender], "oracle already voted");

        if (proposal._status == ProposalStatus.Inactive) {
            _proposals[proposalNumber][dataHash] = Proposal({
                _dataHash: dataHash,
                _yesVotes: new address[](1),
                _status: ProposalStatus.Active,
                _proposedBlock: block.number
            });
            proposal._yesVotes[0] = msg.sender;
            emit ProposalEvent(proposalNumber, ProposalStatus.Active, dataHash);
        } else {
            if (block.number - proposal._proposedBlock > _expiry) {
                // if the number of blocks that has passed since this proposal was
                // submitted exceeds the expiry threshold set, cancel the proposal
                proposal._status = ProposalStatus.Cancelled;
                emit ProposalEvent(
                    proposalNumber,
                    ProposalStatus.Cancelled,
                    dataHash
                );
            } else {
                require(dataHash == proposal._dataHash, "datahash mismatch");
                proposal._yesVotes.push(msg.sender);
            }
        }
        if (proposal._status != ProposalStatus.Cancelled) {
            _hasVotedOnProposal[proposalNumber][dataHash][msg.sender] = true;
            emit ProposalVote(proposalNumber, proposal._status);

            // If _depositThreshold is set to 1, then auto finalize
            // or if _relayerThreshold has been exceeded
            if (_voteThreshold <= 1 || proposal._yesVotes.length >= _voteThreshold) {
                proposal._status = ProposalStatus.Passed;
                emit ProposalEvent(
                    proposalNumber,
                    ProposalStatus.Passed,
                    dataHash
                );
            }
        }
    }

    /**
        @notice Cancels an expired proposal that has not yet been marked as cancelled.
        @notice Only callable by oracles or admin.
        @param proposalNumber The number of proposal executions that would have been completed if this proposal had been executed (_executedCount+1).
        @param dataHash Hash of encodePacked data originally provided when proposal was made.
        @notice Proposal must be past expiry threshold.
        @notice Emits {ProposalEvent} event with status {Cancelled}.
     */
    function cancelProposal(
        uint32 proposalNumber,
        bytes32 dataHash
    ) public onlyAdminOrOracle {
        Proposal storage proposal = _proposals[proposalNumber][dataHash];

        require(proposal._status != ProposalStatus.Cancelled, "Proposal already cancelled");
        require(
            block.number - proposal._proposedBlock > _expiry,
            "Proposal not at expiry threshold"
        );

        proposal._status = ProposalStatus.Cancelled;
        emit ProposalEvent(
            proposalNumber,
            ProposalStatus.Cancelled,
            proposal._dataHash
        );
    }

    /**
        @notice Executes a proposal that is considered passed.
        @notice Only callable by oracles when not paused.
        @param proposalNumber The number of proposal executions that will have been completed when this proposal is executed (_executedCount+1).
        @param data abi-encode-packed resourceID, proposalNumber, and data to pass on to handler specified by resourceID lookup.
        @notice Proposal must have "Passed" status.
        @notice Hash of {data} must equal proposal's {dataHash}.
        @notice Emits {ProposalEvent} event with status {Executed}.
     */
    function executeProposal(
        uint32 proposalNumber,
        bytes calldata data
    ) external onlyOracles whenNotPaused {
        bytes32 dataHash = keccak256(data);
        Proposal storage proposal = _proposals[proposalNumber][dataHash];

        require(proposal._status != ProposalStatus.Inactive, "proposal is not active");
        require(proposal._status == ProposalStatus.Passed, "proposal already executed, cancelled, or not yet passed");
        require(dataHash == proposal._dataHash, "data doesn't match datahash");

        require(proposalNumber == uint32(bytes4(data[:4])), "proposalNumber<>data mismatch");

        proposal._status = ProposalStatus.Executed;
        ++_executedCount;
        onExecute(data[4:]);

        emit ProposalEvent(
            proposalNumber,
            ProposalStatus.Executed,
            dataHash
        );
    }

    function onExecute(bytes calldata data) internal virtual;
    
    /**
        @notice Transfers native currency in the contract to the specified addresses. The parameters addrs and amounts are mapped 1:1.
        This means that the address at index 0 for addrs will receive the amount (in WEI/ticks) from amounts at index 0.
        @param addrs Array of addresses to transfer {amounts} to.
        @param amounts Array of amonuts to transfer to {addrs}.
     */
    function transferFunds(address payable[] calldata addrs, uint256[] calldata amounts)
        external
        onlyAdmin
    {
        for (uint256 i = 0; i < addrs.length; i++) {
            addrs[i].transfer(amounts[i]);
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"initialTbillPrice","type":"uint256"},{"internalType":"uint256","name":"initialVoteThreshold","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"address[]","name":"initialOracles","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oracle","type":"address"}],"name":"OracleAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oracle","type":"address"}],"name":"OracleRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint32","name":"proposalNumber","type":"uint32"},{"indexed":true,"internalType":"enum TOracle.ProposalStatus","name":"status","type":"uint8"},{"indexed":false,"internalType":"bytes32","name":"dataHash","type":"bytes32"}],"name":"ProposalEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint32","name":"proposalNumber","type":"uint32"},{"indexed":true,"internalType":"enum TOracle.ProposalStatus","name":"status","type":"uint8"}],"name":"ProposalVote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"bool","name":"valid","type":"bool"}],"name":"UpdatedAvgPrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newThreshold","type":"uint256"}],"name":"VoteThresholdChanged","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ORACLE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_executedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_expiry","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"","type":"uint32"},{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"address","name":"","type":"address"}],"name":"_hasVotedOnProposal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"","type":"uint32"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"_proposals","outputs":[{"internalType":"enum TOracle.ProposalStatus","name":"_status","type":"uint8"},{"internalType":"bytes32","name":"_dataHash","type":"bytes32"},{"internalType":"uint256","name":"_proposedBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalOracles","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_voteThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"oracleAddress","type":"address"}],"name":"adminAddOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newThreshold","type":"uint256"}],"name":"adminChangeVoteThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adminPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"oracleAddress","type":"address"}],"name":"adminRemoveOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adminUnpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"proposalNumber","type":"uint32"},{"internalType":"bytes32","name":"dataHash","type":"bytes32"}],"name":"cancelProposal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"proposalNumber","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"executeProposal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getData","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"valid","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"proposalNumber","type":"uint32"},{"internalType":"bytes32","name":"dataHash","type":"bytes32"}],"name":"getProposal","outputs":[{"components":[{"internalType":"enum TOracle.ProposalStatus","name":"_status","type":"uint8"},{"internalType":"bytes32","name":"_dataHash","type":"bytes32"},{"internalType":"address[]","name":"_yesVotes","type":"address[]"},{"internalType":"uint256","name":"_proposedBlock","type":"uint256"}],"internalType":"struct TOracle.Proposal","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTBillLastPrice","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTBillLastPriceValid","outputs":[{"internalType":"bool","name":"valid","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"checkAddress","type":"address"}],"name":"isOracle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"renounceAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable[]","name":"addrs","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"transferFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"proposalNumber","type":"uint32"},{"internalType":"bytes32","name":"dataHash","type":"bytes32"}],"name":"voteProposal","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620026f0380380620026f083398101604081905262000034916200049a565b6000805460ff19168155600284905560038390558390839083906200005a9033620000ec565b62000076600080516020620026d08339815191526000620000fc565b60005b8151811015620000d557620000c0600080516020620026d0833981519152838381518110620000ac57620000ac6200058c565b60200260200101516200014960201b60201c565b80620000cc81620005b8565b91505062000079565b5051600455505050603a92909255506200070e9050565b620000f8828262000179565b5050565b6000828152600160208190526040808320909101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152600160208190526040909120015462000168813362000201565b62000174838362000179565b505050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620000f85760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620000f8576200024d816001600160a01b03166014620002a760201b620012cf1760201c565b62000263836020620012cf620002a7821b17811c565b6040516020016200027692919062000609565b60408051601f198184030181529082905262461bcd60e51b82526200029e9160040162000682565b60405180910390fd5b60606000620002b8836002620006b7565b620002c5906002620006d9565b6001600160401b03811115620002df57620002df62000467565b6040519080825280601f01601f1916602001820160405280156200030a576020820181803683370190505b509050600360fc1b816000815181106200032857620003286200058c565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106200035a576200035a6200058c565b60200101906001600160f81b031916908160001a905350600062000380846002620006b7565b6200038d906001620006d9565b90505b60018111156200040f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110620003c557620003c56200058c565b1a60f81b828281518110620003de57620003de6200058c565b60200101906001600160f81b031916908160001a90535060049490941c936200040781620006f4565b905062000390565b508315620004605760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016200029e565b9392505050565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200049557600080fd5b919050565b60008060008060808587031215620004b157600080fd5b8451602080870151604088015160608901519397509095509350906001600160401b0380821115620004e257600080fd5b818801915088601f830112620004f757600080fd5b8151818111156200050c576200050c62000467565b8060051b604051601f19603f8301168101818110858211171562000534576200053462000467565b60405291825284820192508381018501918b8311156200055357600080fd5b938501935b828510156200057c576200056c856200047d565b8452938501939285019262000558565b989b979a50959850505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415620005cf57620005cf620005a2565b5060010190565b60005b83811015620005f3578181015183820152602001620005d9565b8381111562000603576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835162000643816017850160208801620005d6565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835162000676816028840160208801620005d6565b01602801949350505050565b6020815260008251806020840152620006a3816040850160208701620005d6565b601f01601f19169190910160400192915050565b6000816000190483118215151615620006d457620006d4620005a2565b500290565b60008219821115620006ef57620006ef620005a2565b500190565b600081620007065762000706620005a2565b506000190190565b611fb2806200071e6000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c80636c786c111161010f578063af066bb6116100a2578063d547741f11610071578063d547741f1461047d578063e089e58614610490578063e89ed1d114610499578063fa8e28c8146104a157600080fd5b8063af066bb614610446578063c20860af14610459578063c3303e0614610461578063c5ec89701461047457600080fd5b80639e8681a7116100de5780639e8681a7146103d5578063a217fddf14610422578063a97e5c931461042a578063acad92d31461043d57600080fd5b80636c786c11146103715780637a7ef3051461038157806391d148541461039457806392f9c067146103cd57600080fd5b80633bc5de301161018757806350cf2c1c1161015657806350cf2c1c1461032d5780635c975abb146103405780635e1fab0f1461034b5780636b06c75a1461035e57600080fd5b80633bc5de30146102b65780634603ae38146102d357806348bdb301146102e65780635085b022146102f957600080fd5b8063248a9ca3116101c3578063248a9ca3146102505780632f2ff15d14610274578063313ce5671461028957806336568abe146102a357600080fd5b806301ffc9a7146101ea57806307e2cea51461021257806307eff23f14610247575b600080fd5b6101fd6101f8366004611a12565b6104c1565b60405190151581526020015b60405180910390f35b6102397f68e79a7bf1e0bc45d0a330c573bc367f9cf464fd326078812f301165fbda4ef181565b604051908152602001610209565b61023960055481565b61023961025e366004611a3c565b6000908152600160208190526040909120015490565b610287610282366004611a6a565b61052a565b005b610291601281565b60405160ff9091168152602001610209565b6102876102b1366004611a6a565b610556565b6102be6105e7565b60408051928352901515602083015201610209565b6102876102e1366004611ae6565b610611565b6102876102f4366004611b6b565b6106b5565b6101fd610307366004611bee565b600760209081526000938452604080852082529284528284209052825290205460ff1681565b61028761033b366004611c2e565b610975565b60005460ff166101fd565b610287610359366004611c2e565b610a7a565b61028761036c366004611c4b565b610a9b565b603a54600160ff1b1615156101fd565b61028761038f366004611c2e565b610eba565b6101fd6103a2366004611a6a565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610287610fb7565b6104136103e3366004611c4b565b600660209081526000928352604080842090915290825290208054600182015460039092015460ff909116919083565b60405161020993929190611cad565b610239600081565b6101fd610438366004611c2e565b610fc9565b61023960045481565b610287610454366004611a3c565b611009565b610287611044565b61028761046f366004611c4b565b611054565b61023960035481565b61028761048b366004611a6a565b61118c565b61023960025481565b6102396111b3565b6104b46104af366004611c4b565b6111cd565b6040516102099190611ccc565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061052457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6000828152600160208190526040909120015461054781336114b7565b6105518383611537565b505050565b6001600160a01b03811633146105d95760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6105e382826115be565b5050565b6000806105f96001600160ff1b611d64565b603a541691506000600160ff1b603a54161190509091565b610619611641565b60005b838110156106ae5784848281811061063657610636611d7b565b905060200201602081019061064b9190611c2e565b6001600160a01b03166108fc84848481811061066957610669611d7b565b905060200201359081150290604051600060405180830381858888f1935050505015801561069b573d6000803e3d6000fd5b50806106a681611d91565b91505061061c565b5050505050565b6106bd6116bf565b60005460ff16156107035760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105d0565b60008282604051610715929190611dac565b604080519182900390912063ffffffff8616600090815260066020908152838220838352905291822090925090815460ff16600481111561075857610758611c75565b14156107a65760405162461bcd60e51b815260206004820152601660248201527f70726f706f73616c206973206e6f74206163746976650000000000000000000060448201526064016105d0565b6002815460ff1660048111156107be576107be611c75565b146108315760405162461bcd60e51b815260206004820152603760248201527f70726f706f73616c20616c72656164792065786563757465642c2063616e636560448201527f6c6c65642c206f72206e6f74207965742070617373656400000000000000000060648201526084016105d0565b806001015482146108845760405162461bcd60e51b815260206004820152601b60248201527f6461746120646f65736e2774206d61746368206461746168617368000000000060448201526064016105d0565b610892600460008587611dbc565b61089b91611de6565b60e01c63ffffffff168563ffffffff16146108f85760405162461bcd60e51b815260206004820152601d60248201527f70726f706f73616c4e756d6265723c3e64617461206d69736d6174636800000060448201526064016105d0565b805460ff191660031781556005805460009061091390611d91565b9091555061092c6109278460048188611dbc565b61173d565b60038563ffffffff167ffe442b07c729edb7c123c44ce4703a31c74d23f6d1cabb62d38bd3c947dd033f8460405161096691815260200190565b60405180910390a35050505050565b61097d611641565b6001600160a01b03811660009081527ff7c11a6d0ec535894a90c88b42cba2ccb348cb15b5e3ad22a710d1d4ac632819602052604090205460ff16610a045760405162461bcd60e51b815260206004820152601e60248201527f6164647220646f65736e27742068617665206f7261636c6520726f6c6521000060448201526064016105d0565b610a2e7f68e79a7bf1e0bc45d0a330c573bc367f9cf464fd326078812f301165fbda4ef18261118c565b6040516001600160a01b038216907f9c8e7d83025bef8a04c664b2f753f64b8814bdb7e27291d7e50935f18cc3c71290600090a260048054906000610a7283611e16565b919050555050565b610a82611641565b610a8d60008261052a565b610a98600033610556565b50565b610aa36116bf565b60005460ff1615610ae95760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105d0565b63ffffffff8216600090815260066020908152604080832084845290915290206001815460ff166004811115610b2157610b21611c75565b1115610b2c57505050565b63ffffffff83166000908152600760209081526040808320858452825280832033845290915290205460ff1615610ba55760405162461bcd60e51b815260206004820152601460248201527f6f7261636c6520616c726561647920766f74656400000000000000000000000060448201526064016105d0565b6000815460ff166004811115610bbd57610bbd611c75565b1415610d0557604080516080810182526001808252602082018590528251818152808401845291928301919081602001602082028036833750505081524360209182015263ffffffff851660009081526006825260408082208683529092522081518154829060ff19166001836004811115610c3b57610c3b611c75565b0217905550602082810151600183015560408301518051610c62926002850192019061198b565b50606082015181600301559050503381600201600081548110610c8757610c87611d7b565b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039290921691909117905560015b8363ffffffff167ffe442b07c729edb7c123c44ce4703a31c74d23f6d1cabb62d38bd3c947dd033f84604051610cf891815260200190565b60405180910390a3610db8565b600354816003015443610d189190611d64565b1115610d3057805460ff191660049081178255610cc0565b80600101548214610d835760405162461bcd60e51b815260206004820152601160248201527f6461746168617368206d69736d6174636800000000000000000000000000000060448201526064016105d0565b6002810180546001810182556000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916331790555b6004815460ff166004811115610dd057610dd0611c75565b146105515763ffffffff8316600090815260076020908152604080832085845282528083203384529091529020805460ff19166001179055805460ff166004811115610e1e57610e1e611c75565b60405163ffffffff8516907f0b057b16c1df0aaa43e08d36a0062722605741a259643eccfcd8626e90ed162e90600090a36001600254111580610e675750600280549082015410155b1561055157805460ff19166002908117825560405183815263ffffffff8516907ffe442b07c729edb7c123c44ce4703a31c74d23f6d1cabb62d38bd3c947dd033f906020015b60405180910390a3505050565b610ec2611641565b6001600160a01b03811660009081527ff7c11a6d0ec535894a90c88b42cba2ccb348cb15b5e3ad22a710d1d4ac632819602052604090205460ff1615610f4a5760405162461bcd60e51b815260206004820152601d60248201527f6164647220616c726561647920686173206f7261636c6520726f6c652100000060448201526064016105d0565b610f747f68e79a7bf1e0bc45d0a330c573bc367f9cf464fd326078812f301165fbda4ef18261052a565b6040516001600160a01b038216907e47706786c922d17b39285dc59d696bafea72c0b003d3841ae1202076f4c2e490600090a260048054906000610a7283611d91565b610fbf611641565b610fc76117bd565b565b6001600160a01b03811660009081527ff7c11a6d0ec535894a90c88b42cba2ccb348cb15b5e3ad22a710d1d4ac632819602052604081205460ff16610524565b611011611641565b600281905560405181907fb85f4a3c2a2a4d5ee4d22634fd1ed5b17b5fb6e35ef5ca2d03049a0ef4e59d2590600090a250565b61104c611641565b610fc7611859565b61105c6118d4565b63ffffffff8216600090815260066020908152604080832084845290915290206004815460ff16600481111561109457611094611c75565b14156110e25760405162461bcd60e51b815260206004820152601a60248201527f50726f706f73616c20616c72656164792063616e63656c6c656400000000000060448201526064016105d0565b6003548160030154436110f59190611d64565b116111425760405162461bcd60e51b815260206004820181905260248201527f50726f706f73616c206e6f7420617420657870697279207468726573686f6c6460448201526064016105d0565b805460ff191660049081178255600182015460405190815263ffffffff8516907ffe442b07c729edb7c123c44ce4703a31c74d23f6d1cabb62d38bd3c947dd033f90602001610ead565b600082815260016020819052604090912001546111a981336114b7565b61055183836115be565b60006111c46001600160ff1b611d64565b603a5416905090565b6111f9604080516080810190915280600081526000602082018190526060604083018190529091015290565b63ffffffff83166000908152600660209081526040808320858452909152908190208151608081019092528054829060ff16600481111561123c5761123c611c75565b600481111561124d5761124d611c75565b815260200160018201548152602001600282018054806020026020016040519081016040528092919081815260200182805480156112b457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611296575b50505050508152602001600382015481525050905092915050565b606060006112de836002611e43565b6112e9906002611e62565b67ffffffffffffffff81111561130157611301611e2d565b6040519080825280601f01601f19166020018201604052801561132b576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061136257611362611d7b565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106113ad576113ad611d7b565b60200101906001600160f81b031916908160001a90535060006113d1846002611e43565b6113dc906001611e62565b90505b6001811115611461577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061141d5761141d611d7b565b1a60f81b82828151811061143357611433611d7b565b60200101906001600160f81b031916908160001a90535060049490941c9361145a81611e16565b90506113df565b5083156114b05760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105d0565b9392505050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff166105e3576114f5816001600160a01b031660146112cf565b6115008360206112cf565b604051602001611511929190611eaa565b60408051601f198184030181529082905262461bcd60e51b82526105d091600401611f2b565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff166105e35760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16156105e35760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b3360009081527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49602052604090205460ff16610fc75760405162461bcd60e51b815260206004820152601e60248201527f73656e64657220646f65736e277420686176652061646d696e20726f6c65000060448201526064016105d0565b3360009081527ff7c11a6d0ec535894a90c88b42cba2ccb348cb15b5e3ad22a710d1d4ac632819602052604090205460ff16610fc75760405162461bcd60e51b815260206004820152601f60248201527f73656e64657220646f65736e27742068617665206f7261636c6520726f6c650060448201526064016105d0565b600061174c6020828486611dbc565b61175591611f5e565b905060006117686001600160ff1b611d64565b603a83905560408051918416808352600160ff1b8516151560208401819052909350917fe352ea9022166bc97d2ebc96e8487de53d6dc4ba02c149562b0ea58d1bd2d6c3910160405180910390a15050505050565b60005460ff1661180f5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016105d0565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60005460ff161561189f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105d0565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861183c3390565b3360009081527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49602052604090205460ff168061193f57503360009081527ff7c11a6d0ec535894a90c88b42cba2ccb348cb15b5e3ad22a710d1d4ac632819602052604090205460ff165b610fc75760405162461bcd60e51b815260206004820152601d60248201527f73656e646572206973206e6f74206f7261636c65206f722061646d696e00000060448201526064016105d0565b8280548282559060005260206000209081019282156119ed579160200282015b828111156119ed578251825473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039091161782556020909201916001909101906119ab565b506119f99291506119fd565b5090565b5b808211156119f957600081556001016119fe565b600060208284031215611a2457600080fd5b81356001600160e01b0319811681146114b057600080fd5b600060208284031215611a4e57600080fd5b5035919050565b6001600160a01b0381168114610a9857600080fd5b60008060408385031215611a7d57600080fd5b823591506020830135611a8f81611a55565b809150509250929050565b60008083601f840112611aac57600080fd5b50813567ffffffffffffffff811115611ac457600080fd5b6020830191508360208260051b8501011115611adf57600080fd5b9250929050565b60008060008060408587031215611afc57600080fd5b843567ffffffffffffffff80821115611b1457600080fd5b611b2088838901611a9a565b90965094506020870135915080821115611b3957600080fd5b50611b4687828801611a9a565b95989497509550505050565b803563ffffffff81168114611b6657600080fd5b919050565b600080600060408486031215611b8057600080fd5b611b8984611b52565b9250602084013567ffffffffffffffff80821115611ba657600080fd5b818601915086601f830112611bba57600080fd5b813581811115611bc957600080fd5b876020828501011115611bdb57600080fd5b6020830194508093505050509250925092565b600080600060608486031215611c0357600080fd5b611c0c84611b52565b9250602084013591506040840135611c2381611a55565b809150509250925092565b600060208284031215611c4057600080fd5b81356114b081611a55565b60008060408385031215611c5e57600080fd5b611c6783611b52565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b60058110611ca957634e487b7160e01b600052602160045260246000fd5b9052565b60608101611cbb8286611c8b565b602082019390935260400152919050565b6000602080835260a08301611ce48285018651611c8b565b848201516040858101919091528501516080606086015280519182905282019060009060c08601905b80831015611d365783516001600160a01b03168252928401926001929092019190840190611d0d565b50606087015160808701528094505050505092915050565b634e487b7160e01b600052601160045260246000fd5b600082821015611d7657611d76611d4e565b500390565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611da557611da5611d4e565b5060010190565b8183823760009101908152919050565b60008085851115611dcc57600080fd5b83861115611dd957600080fd5b5050820193919092039150565b6001600160e01b03198135818116916004851015611e0e5780818660040360031b1b83161692505b505092915050565b600081611e2557611e25611d4e565b506000190190565b634e487b7160e01b600052604160045260246000fd5b6000816000190483118215151615611e5d57611e5d611d4e565b500290565b60008219821115611e7557611e75611d4e565b500190565b60005b83811015611e95578181015183820152602001611e7d565b83811115611ea4576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611ee2816017850160208801611e7a565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611f1f816028840160208801611e7a565b01602801949350505050565b6020815260008251806020840152611f4a816040850160208701611e7a565b601f01601f19169190910160400192915050565b8035602083101561052457600019602084900360031b1b169291505056fea26469706673582212206a3bd265b8b7e4a37b25e70674be8380734565e08db835e711c6d64b72241ea264736f6c634300080a003368e79a7bf1e0bc45d0a330c573bc367f9cf464fd326078812f301165fbda4ef10000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000012c00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000005000000000000000000000000450706543148a96f7ffd030a3dd133b15b280e21000000000000000000000000a7c4e6bf8152d9bdde8f89386a6b4b8dfcdb70cc000000000000000000000000428b7dc0ad10b7afdb5eea5f77d418fd8ce2a55b0000000000000000000000005193fd1c690d09a01760889dc23d22d19928fd01000000000000000000000000cc62fe3a34d43d5bf64f1895575a5f152100c00d

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101e55760003560e01c80636c786c111161010f578063af066bb6116100a2578063d547741f11610071578063d547741f1461047d578063e089e58614610490578063e89ed1d114610499578063fa8e28c8146104a157600080fd5b8063af066bb614610446578063c20860af14610459578063c3303e0614610461578063c5ec89701461047457600080fd5b80639e8681a7116100de5780639e8681a7146103d5578063a217fddf14610422578063a97e5c931461042a578063acad92d31461043d57600080fd5b80636c786c11146103715780637a7ef3051461038157806391d148541461039457806392f9c067146103cd57600080fd5b80633bc5de301161018757806350cf2c1c1161015657806350cf2c1c1461032d5780635c975abb146103405780635e1fab0f1461034b5780636b06c75a1461035e57600080fd5b80633bc5de30146102b65780634603ae38146102d357806348bdb301146102e65780635085b022146102f957600080fd5b8063248a9ca3116101c3578063248a9ca3146102505780632f2ff15d14610274578063313ce5671461028957806336568abe146102a357600080fd5b806301ffc9a7146101ea57806307e2cea51461021257806307eff23f14610247575b600080fd5b6101fd6101f8366004611a12565b6104c1565b60405190151581526020015b60405180910390f35b6102397f68e79a7bf1e0bc45d0a330c573bc367f9cf464fd326078812f301165fbda4ef181565b604051908152602001610209565b61023960055481565b61023961025e366004611a3c565b6000908152600160208190526040909120015490565b610287610282366004611a6a565b61052a565b005b610291601281565b60405160ff9091168152602001610209565b6102876102b1366004611a6a565b610556565b6102be6105e7565b60408051928352901515602083015201610209565b6102876102e1366004611ae6565b610611565b6102876102f4366004611b6b565b6106b5565b6101fd610307366004611bee565b600760209081526000938452604080852082529284528284209052825290205460ff1681565b61028761033b366004611c2e565b610975565b60005460ff166101fd565b610287610359366004611c2e565b610a7a565b61028761036c366004611c4b565b610a9b565b603a54600160ff1b1615156101fd565b61028761038f366004611c2e565b610eba565b6101fd6103a2366004611a6a565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610287610fb7565b6104136103e3366004611c4b565b600660209081526000928352604080842090915290825290208054600182015460039092015460ff909116919083565b60405161020993929190611cad565b610239600081565b6101fd610438366004611c2e565b610fc9565b61023960045481565b610287610454366004611a3c565b611009565b610287611044565b61028761046f366004611c4b565b611054565b61023960035481565b61028761048b366004611a6a565b61118c565b61023960025481565b6102396111b3565b6104b46104af366004611c4b565b6111cd565b6040516102099190611ccc565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061052457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6000828152600160208190526040909120015461054781336114b7565b6105518383611537565b505050565b6001600160a01b03811633146105d95760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6105e382826115be565b5050565b6000806105f96001600160ff1b611d64565b603a541691506000600160ff1b603a54161190509091565b610619611641565b60005b838110156106ae5784848281811061063657610636611d7b565b905060200201602081019061064b9190611c2e565b6001600160a01b03166108fc84848481811061066957610669611d7b565b905060200201359081150290604051600060405180830381858888f1935050505015801561069b573d6000803e3d6000fd5b50806106a681611d91565b91505061061c565b5050505050565b6106bd6116bf565b60005460ff16156107035760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105d0565b60008282604051610715929190611dac565b604080519182900390912063ffffffff8616600090815260066020908152838220838352905291822090925090815460ff16600481111561075857610758611c75565b14156107a65760405162461bcd60e51b815260206004820152601660248201527f70726f706f73616c206973206e6f74206163746976650000000000000000000060448201526064016105d0565b6002815460ff1660048111156107be576107be611c75565b146108315760405162461bcd60e51b815260206004820152603760248201527f70726f706f73616c20616c72656164792065786563757465642c2063616e636560448201527f6c6c65642c206f72206e6f74207965742070617373656400000000000000000060648201526084016105d0565b806001015482146108845760405162461bcd60e51b815260206004820152601b60248201527f6461746120646f65736e2774206d61746368206461746168617368000000000060448201526064016105d0565b610892600460008587611dbc565b61089b91611de6565b60e01c63ffffffff168563ffffffff16146108f85760405162461bcd60e51b815260206004820152601d60248201527f70726f706f73616c4e756d6265723c3e64617461206d69736d6174636800000060448201526064016105d0565b805460ff191660031781556005805460009061091390611d91565b9091555061092c6109278460048188611dbc565b61173d565b60038563ffffffff167ffe442b07c729edb7c123c44ce4703a31c74d23f6d1cabb62d38bd3c947dd033f8460405161096691815260200190565b60405180910390a35050505050565b61097d611641565b6001600160a01b03811660009081527ff7c11a6d0ec535894a90c88b42cba2ccb348cb15b5e3ad22a710d1d4ac632819602052604090205460ff16610a045760405162461bcd60e51b815260206004820152601e60248201527f6164647220646f65736e27742068617665206f7261636c6520726f6c6521000060448201526064016105d0565b610a2e7f68e79a7bf1e0bc45d0a330c573bc367f9cf464fd326078812f301165fbda4ef18261118c565b6040516001600160a01b038216907f9c8e7d83025bef8a04c664b2f753f64b8814bdb7e27291d7e50935f18cc3c71290600090a260048054906000610a7283611e16565b919050555050565b610a82611641565b610a8d60008261052a565b610a98600033610556565b50565b610aa36116bf565b60005460ff1615610ae95760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105d0565b63ffffffff8216600090815260066020908152604080832084845290915290206001815460ff166004811115610b2157610b21611c75565b1115610b2c57505050565b63ffffffff83166000908152600760209081526040808320858452825280832033845290915290205460ff1615610ba55760405162461bcd60e51b815260206004820152601460248201527f6f7261636c6520616c726561647920766f74656400000000000000000000000060448201526064016105d0565b6000815460ff166004811115610bbd57610bbd611c75565b1415610d0557604080516080810182526001808252602082018590528251818152808401845291928301919081602001602082028036833750505081524360209182015263ffffffff851660009081526006825260408082208683529092522081518154829060ff19166001836004811115610c3b57610c3b611c75565b0217905550602082810151600183015560408301518051610c62926002850192019061198b565b50606082015181600301559050503381600201600081548110610c8757610c87611d7b565b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039290921691909117905560015b8363ffffffff167ffe442b07c729edb7c123c44ce4703a31c74d23f6d1cabb62d38bd3c947dd033f84604051610cf891815260200190565b60405180910390a3610db8565b600354816003015443610d189190611d64565b1115610d3057805460ff191660049081178255610cc0565b80600101548214610d835760405162461bcd60e51b815260206004820152601160248201527f6461746168617368206d69736d6174636800000000000000000000000000000060448201526064016105d0565b6002810180546001810182556000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916331790555b6004815460ff166004811115610dd057610dd0611c75565b146105515763ffffffff8316600090815260076020908152604080832085845282528083203384529091529020805460ff19166001179055805460ff166004811115610e1e57610e1e611c75565b60405163ffffffff8516907f0b057b16c1df0aaa43e08d36a0062722605741a259643eccfcd8626e90ed162e90600090a36001600254111580610e675750600280549082015410155b1561055157805460ff19166002908117825560405183815263ffffffff8516907ffe442b07c729edb7c123c44ce4703a31c74d23f6d1cabb62d38bd3c947dd033f906020015b60405180910390a3505050565b610ec2611641565b6001600160a01b03811660009081527ff7c11a6d0ec535894a90c88b42cba2ccb348cb15b5e3ad22a710d1d4ac632819602052604090205460ff1615610f4a5760405162461bcd60e51b815260206004820152601d60248201527f6164647220616c726561647920686173206f7261636c6520726f6c652100000060448201526064016105d0565b610f747f68e79a7bf1e0bc45d0a330c573bc367f9cf464fd326078812f301165fbda4ef18261052a565b6040516001600160a01b038216907e47706786c922d17b39285dc59d696bafea72c0b003d3841ae1202076f4c2e490600090a260048054906000610a7283611d91565b610fbf611641565b610fc76117bd565b565b6001600160a01b03811660009081527ff7c11a6d0ec535894a90c88b42cba2ccb348cb15b5e3ad22a710d1d4ac632819602052604081205460ff16610524565b611011611641565b600281905560405181907fb85f4a3c2a2a4d5ee4d22634fd1ed5b17b5fb6e35ef5ca2d03049a0ef4e59d2590600090a250565b61104c611641565b610fc7611859565b61105c6118d4565b63ffffffff8216600090815260066020908152604080832084845290915290206004815460ff16600481111561109457611094611c75565b14156110e25760405162461bcd60e51b815260206004820152601a60248201527f50726f706f73616c20616c72656164792063616e63656c6c656400000000000060448201526064016105d0565b6003548160030154436110f59190611d64565b116111425760405162461bcd60e51b815260206004820181905260248201527f50726f706f73616c206e6f7420617420657870697279207468726573686f6c6460448201526064016105d0565b805460ff191660049081178255600182015460405190815263ffffffff8516907ffe442b07c729edb7c123c44ce4703a31c74d23f6d1cabb62d38bd3c947dd033f90602001610ead565b600082815260016020819052604090912001546111a981336114b7565b61055183836115be565b60006111c46001600160ff1b611d64565b603a5416905090565b6111f9604080516080810190915280600081526000602082018190526060604083018190529091015290565b63ffffffff83166000908152600660209081526040808320858452909152908190208151608081019092528054829060ff16600481111561123c5761123c611c75565b600481111561124d5761124d611c75565b815260200160018201548152602001600282018054806020026020016040519081016040528092919081815260200182805480156112b457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611296575b50505050508152602001600382015481525050905092915050565b606060006112de836002611e43565b6112e9906002611e62565b67ffffffffffffffff81111561130157611301611e2d565b6040519080825280601f01601f19166020018201604052801561132b576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061136257611362611d7b565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106113ad576113ad611d7b565b60200101906001600160f81b031916908160001a90535060006113d1846002611e43565b6113dc906001611e62565b90505b6001811115611461577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061141d5761141d611d7b565b1a60f81b82828151811061143357611433611d7b565b60200101906001600160f81b031916908160001a90535060049490941c9361145a81611e16565b90506113df565b5083156114b05760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105d0565b9392505050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff166105e3576114f5816001600160a01b031660146112cf565b6115008360206112cf565b604051602001611511929190611eaa565b60408051601f198184030181529082905262461bcd60e51b82526105d091600401611f2b565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff166105e35760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16156105e35760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b3360009081527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49602052604090205460ff16610fc75760405162461bcd60e51b815260206004820152601e60248201527f73656e64657220646f65736e277420686176652061646d696e20726f6c65000060448201526064016105d0565b3360009081527ff7c11a6d0ec535894a90c88b42cba2ccb348cb15b5e3ad22a710d1d4ac632819602052604090205460ff16610fc75760405162461bcd60e51b815260206004820152601f60248201527f73656e64657220646f65736e27742068617665206f7261636c6520726f6c650060448201526064016105d0565b600061174c6020828486611dbc565b61175591611f5e565b905060006117686001600160ff1b611d64565b603a83905560408051918416808352600160ff1b8516151560208401819052909350917fe352ea9022166bc97d2ebc96e8487de53d6dc4ba02c149562b0ea58d1bd2d6c3910160405180910390a15050505050565b60005460ff1661180f5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016105d0565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60005460ff161561189f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105d0565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861183c3390565b3360009081527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49602052604090205460ff168061193f57503360009081527ff7c11a6d0ec535894a90c88b42cba2ccb348cb15b5e3ad22a710d1d4ac632819602052604090205460ff165b610fc75760405162461bcd60e51b815260206004820152601d60248201527f73656e646572206973206e6f74206f7261636c65206f722061646d696e00000060448201526064016105d0565b8280548282559060005260206000209081019282156119ed579160200282015b828111156119ed578251825473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039091161782556020909201916001909101906119ab565b506119f99291506119fd565b5090565b5b808211156119f957600081556001016119fe565b600060208284031215611a2457600080fd5b81356001600160e01b0319811681146114b057600080fd5b600060208284031215611a4e57600080fd5b5035919050565b6001600160a01b0381168114610a9857600080fd5b60008060408385031215611a7d57600080fd5b823591506020830135611a8f81611a55565b809150509250929050565b60008083601f840112611aac57600080fd5b50813567ffffffffffffffff811115611ac457600080fd5b6020830191508360208260051b8501011115611adf57600080fd5b9250929050565b60008060008060408587031215611afc57600080fd5b843567ffffffffffffffff80821115611b1457600080fd5b611b2088838901611a9a565b90965094506020870135915080821115611b3957600080fd5b50611b4687828801611a9a565b95989497509550505050565b803563ffffffff81168114611b6657600080fd5b919050565b600080600060408486031215611b8057600080fd5b611b8984611b52565b9250602084013567ffffffffffffffff80821115611ba657600080fd5b818601915086601f830112611bba57600080fd5b813581811115611bc957600080fd5b876020828501011115611bdb57600080fd5b6020830194508093505050509250925092565b600080600060608486031215611c0357600080fd5b611c0c84611b52565b9250602084013591506040840135611c2381611a55565b809150509250925092565b600060208284031215611c4057600080fd5b81356114b081611a55565b60008060408385031215611c5e57600080fd5b611c6783611b52565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b60058110611ca957634e487b7160e01b600052602160045260246000fd5b9052565b60608101611cbb8286611c8b565b602082019390935260400152919050565b6000602080835260a08301611ce48285018651611c8b565b848201516040858101919091528501516080606086015280519182905282019060009060c08601905b80831015611d365783516001600160a01b03168252928401926001929092019190840190611d0d565b50606087015160808701528094505050505092915050565b634e487b7160e01b600052601160045260246000fd5b600082821015611d7657611d76611d4e565b500390565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611da557611da5611d4e565b5060010190565b8183823760009101908152919050565b60008085851115611dcc57600080fd5b83861115611dd957600080fd5b5050820193919092039150565b6001600160e01b03198135818116916004851015611e0e5780818660040360031b1b83161692505b505092915050565b600081611e2557611e25611d4e565b506000190190565b634e487b7160e01b600052604160045260246000fd5b6000816000190483118215151615611e5d57611e5d611d4e565b500290565b60008219821115611e7557611e75611d4e565b500190565b60005b83811015611e95578181015183820152602001611e7d565b83811115611ea4576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611ee2816017850160208801611e7a565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611f1f816028840160208801611e7a565b01602801949350505050565b6020815260008251806020840152611f4a816040850160208701611e7a565b601f01601f19169190910160400192915050565b8035602083101561052457600019602084900360031b1b169291505056fea26469706673582212206a3bd265b8b7e4a37b25e70674be8380734565e08db835e711c6d64b72241ea264736f6c634300080a0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000012c00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000005000000000000000000000000450706543148a96f7ffd030a3dd133b15b280e21000000000000000000000000a7c4e6bf8152d9bdde8f89386a6b4b8dfcdb70cc000000000000000000000000428b7dc0ad10b7afdb5eea5f77d418fd8ce2a55b0000000000000000000000005193fd1c690d09a01760889dc23d22d19928fd01000000000000000000000000cc62fe3a34d43d5bf64f1895575a5f152100c00d

-----Decoded View---------------
Arg [0] : initialTbillPrice (uint256): 1000000000000000000
Arg [1] : initialVoteThreshold (uint256): 2
Arg [2] : expiry (uint256): 300
Arg [3] : initialOracles (address[]): 0x450706543148a96F7ffd030a3DD133B15b280e21,0xa7c4E6bF8152D9BDdE8f89386A6b4b8DFCDB70cC,0x428b7DC0AD10B7AFdb5Eea5F77d418FD8ce2A55B,0x5193FD1c690d09a01760889dC23D22d19928fD01,0xCc62fe3a34D43d5bf64f1895575A5f152100C00D

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [2] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [5] : 000000000000000000000000450706543148a96f7ffd030a3dd133b15b280e21
Arg [6] : 000000000000000000000000a7c4e6bf8152d9bdde8f89386a6b4b8dfcdb70cc
Arg [7] : 000000000000000000000000428b7dc0ad10b7afdb5eea5f77d418fd8ce2a55b
Arg [8] : 0000000000000000000000005193fd1c690d09a01760889dc23d22d19928fd01
Arg [9] : 000000000000000000000000cc62fe3a34d43d5bf64f1895575a5f152100c00d


Deployed Bytecode Sourcemap

210:1697:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2545:202:2;;;;;;:::i;:::-;;:::i;:::-;;;516:14:9;;509:22;491:41;;479:2;464:18;2545:202:2;;;;;;;;1247:62:1;;1285:24;1247:62;;;;;689:25:9;;;677:2;662:18;1247:62:1;543:177:9;1520:29:1;;;;;;3917:121:2;;;;;;:::i;:::-;3983:7;4009:12;;;:6;:12;;;;;;;;:22;;;3917:121;4288:145;;;;;;:::i;:::-;;:::i;:::-;;459:35:0;;492:2;459:35;;;;;1743:4:9;1731:17;;;1713:36;;1701:2;1686:18;459:35:0;1571:184:9;5305:214:2;;;;;;:::i;:::-;;:::i;933:195:0:-;;;:::i;:::-;;;;1928:25:9;;;1996:14;;1989:22;1984:2;1969:18;;1962:50;1901:18;933:195:0;1760:258:9;13177:237:1;;;;;;:::i;:::-;;:::i;11834:868::-;;;;;;:::i;:::-;;:::i;1814:90::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6229:280;;;;;;:::i;:::-;;:::i;1041:84:4:-;1088:4;1111:7;;;1041:84;;4230:170:1;;;;;;:::i;:::-;;:::i;7928:2161::-;;;;;;:::i;:::-;;:::i;1268:139:0:-;1355:25;;-1:-1:-1;;;1355:41:0;:45;;1268:139;;5654:274:1;;;;;;:::i;:::-;;:::i;2834:137:2:-;;;;;;:::i;:::-;2912:4;2935:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;2935:29:2;;;;;;;;;;;;;;;2834:137;4800:70:1;;;:::i;1643:65::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;1952:49:2:-;;1997:4;1952:49;;3852:127:1;;;;;;:::i;:::-;;:::i;1466:28::-;;;;;;5188:170;;;;;;:::i;:::-;;:::i;4566:66::-;;;:::i;10618:614::-;;;;;;:::i;:::-;;:::i;1397:22::-;;;;;;4667:147:2;;;;;;:::i;:::-;;:::i;1316:29:1:-;;;;;;1133:130:0;;;:::i;7056:184:1:-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;2545:202:2:-;2630:4;-1:-1:-1;;;;;;2653:47:2;;2668:32;2653:47;;:87;;-1:-1:-1;886:25:7;-1:-1:-1;;;;;;871:40:7;;;2704:36:2;2646:94;2545:202;-1:-1:-1;;2545:202:2:o;4288:145::-;3983:7;4009:12;;;:6;:12;;;;;;;;:22;;2430:30;2441:4;666:10:5;2430::2;:30::i;:::-;4401:25:::1;4412:4;4418:7;4401:10;:25::i;:::-;4288:145:::0;;;:::o;5305:214::-;-1:-1:-1;;;;;5400:23:2;;666:10:5;5400:23:2;5392:83;;;;-1:-1:-1;;;5392:83:2;;7172:2:9;5392:83:2;;;7154:21:9;7211:2;7191:18;;;7184:30;7250:34;7230:18;;;7223:62;7321:17;7301:18;;;7294:45;7356:19;;5392:83:2;;;;;;;;;5486:26;5498:4;5504:7;5486:11;:26::i;:::-;5305:214;;:::o;933:195:0:-;975:13;;438:15;452:1;-1:-1:-1;;;438:15:0;:::i;:::-;1020:25;;:38;1012:46;;1120:1;-1:-1:-1;;;1076:25:0;;:41;:45;1068:53;;933:195;;:::o;13177:237:1:-;2007:12;:10;:12::i;:::-;13316:9:::1;13311:97;13331:16:::0;;::::1;13311:97;;;13368:5;;13374:1;13368:8;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;13368:17:1::1;:29;13386:7;;13394:1;13386:10;;;;;;;:::i;:::-;;;;;;;13368:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;13349:3:1;::::1;::::0;::::1;:::i;:::-;;;;13311:97;;;;13177:237:::0;;;;:::o;11834:868::-;2157:14;:12;:14::i;:::-;1088:4:4;1111:7;;;1354:9:::1;1346:38;;;::::0;-1:-1:-1;;;1346:38:4;;8496:2:9;1346:38:4::1;::::0;::::1;8478:21:9::0;8535:2;8515:18;;;8508:30;-1:-1:-1;;;8554:18:9;;;8547:46;8610:18;;1346:38:4::1;8294:340:9::0;1346:38:4::1;11970:16:1::2;11999:4;;11989:15;;;;;;;:::i;:::-;;::::0;;;;;::::2;::::0;;;12042:26:::2;::::0;::::2;12014:25;12042:26:::0;;;:10:::2;:26;::::0;;;;;;:36;;;;;;;;11989:15;;-1:-1:-1;12042:36:1;12097:16;;::::2;;:43;::::0;::::2;;;;;;:::i;:::-;;;12089:78;;;::::0;-1:-1:-1;;;12089:78:1;;9117:2:9;12089:78:1::2;::::0;::::2;9099:21:9::0;9156:2;9136:18;;;9129:30;9195:24;9175:18;;;9168:52;9237:18;;12089:78:1::2;8915:346:9::0;12089:78:1::2;12205:21;12185:16:::0;;::::2;;:41;::::0;::::2;;;;;;:::i;:::-;;12177:109;;;::::0;-1:-1:-1;;;12177:109:1;;9468:2:9;12177:109:1::2;::::0;::::2;9450:21:9::0;9507:2;9487:18;;;9480:30;9546:34;9526:18;;;9519:62;9617:25;9597:18;;;9590:53;9660:19;;12177:109:1::2;9266:419:9::0;12177:109:1::2;12316:8;:18;;;12304:8;:30;12296:70;;;::::0;-1:-1:-1;;;12296:70:1;;9892:2:9;12296:70:1::2;::::0;::::2;9874:21:9::0;9931:2;9911:18;;;9904:30;9970:29;9950:18;;;9943:57;10017:18;;12296:70:1::2;9690:351:9::0;12296:70:1::2;12417:8;12423:1;12417:8;:4:::0;;:8:::2;:::i;:::-;12410:16;::::0;::::2;:::i;:::-;12403:24;;12385:42;;:14;:42;;;12377:84;;;::::0;-1:-1:-1;;;12377:84:1;;10958:2:9;12377:84:1::2;::::0;::::2;10940:21:9::0;10997:2;10977:18;;;10970:30;11036:31;11016:18;;;11009:59;11085:18;;12377:84:1::2;10756:353:9::0;12377:84:1::2;12472:42:::0;;-1:-1:-1;;12472:42:1::2;12491:23;12472:42;::::0;;12526:14:::2;12524:16:::0;;-1:-1:-1;;12524:16:1::2;::::0;::::2;:::i;:::-;::::0;;;-1:-1:-1;12550:19:1::2;12560:8;:4:::0;12565:1:::2;12560:4:::0;;:8:::2;:::i;:::-;12550:9;:19::i;:::-;12640:23;12612:14;12585:110;;;12677:8;12585:110;;;;689:25:9::0;;677:2;662:18;;543:177;12585:110:1::2;;;;;;;;11960:742;;11834:868:::0;;;:::o;6229:280::-;2007:12;:10;:12::i;:::-;-1:-1:-1;;;;;2935:29:2;;2912:4;2935:29;;;:12;;:29;:12;:29;;;;;6308:78:1::1;;;::::0;-1:-1:-1;;;6308:78:1;;11316:2:9;6308:78:1::1;::::0;::::1;11298:21:9::0;11355:2;11335:18;;;11328:30;11394:32;11374:18;;;11367:60;11444:18;;6308:78:1::1;11114:354:9::0;6308:78:1::1;6396:38;1285:24;6420:13;6396:10;:38::i;:::-;6449:28;::::0;-1:-1:-1;;;;;6449:28:1;::::1;::::0;::::1;::::0;;;::::1;6487:13;:15:::0;;;:13:::1;:15;::::0;::::1;:::i;:::-;;;;;;6229:280:::0;:::o;4230:170::-;2007:12;:10;:12::i;:::-;4300:39:::1;1997:4:2;4330:8:1::0;4300:9:::1;:39::i;:::-;4349:44;1997:4:2;4382:10:1;4349:12;:44::i;:::-;4230:170:::0;:::o;7928:2161::-;2157:14;:12;:14::i;:::-;1088:4:4;1111:7;;;1354:9:::1;1346:38;;;::::0;-1:-1:-1;;;1346:38:4;;8496:2:9;1346:38:4::1;::::0;::::1;8478:21:9::0;8535:2;8515:18;;;8508:30;-1:-1:-1;;;8554:18:9;;;8547:46;8610:18;;1346:38:4::1;8294:340:9::0;1346:38:4::1;8064:26:1::2;::::0;::::2;8036:25;8064:26:::0;;;:10:::2;:26;::::0;;;;;;;:36;;;;;;;;8187:21:::2;8168:16:::0;;::::2;;:40;::::0;::::2;;;;;;:::i;:::-;;8164:53;;;8210:7;5305:214:2::0;;:::o;8164:53:1:-:2;8244:35;::::0;::::2;;::::0;;;:19:::2;:35;::::0;;;;;;;:45;;;;;;;;8290:10:::2;8244:57:::0;;;;;;;;::::2;;8243:58;8235:91;;;::::0;-1:-1:-1;;;8235:91:1;;11816:2:9;8235:91:1::2;::::0;::::2;11798:21:9::0;11855:2;11835:18;;;11828:30;11894:22;11874:18;;;11867:50;11934:18;;8235:91:1::2;11614:344:9::0;8235:91:1::2;8361:23;8341:16:::0;;::::2;;:43;::::0;::::2;;;;;;:::i;:::-;;8337:1086;;;8439:200;::::0;;::::2;::::0;::::2;::::0;;8557:21:::2;8439:200:::0;;;::::2;::::0;::::2;::::0;;;8514:16;;;;;;;::::2;::::0;;8439:200;;;;;8514:16;::::2;;;;;;;;;;-1:-1:-1::0;;;8439:200:1;;8612:12:::2;8439:200;::::0;;::::2;::::0;8400:26:::2;::::0;::::2;-1:-1:-1::0;8400:26:1;;;:10:::2;:26:::0;;;;;;:36;;;;;;;:239;;;;:36;;-1:-1:-1;;8400:239:1::2;::::0;;::::2;::::0;::::2;;;;;;:::i;:::-;;;::::0;;-1:-1:-1;8400:239:1::2;::::0;;::::2;::::0;::::2;::::0;::::2;::::0;::::2;::::0;::::2;::::0;;;::::2;::::0;::::2;::::0;::::2;::::0;::::2;::::0;::::2;:::i;:::-;;;;;;;;;;;;;8677:10;8653:8;:18;;8672:1;8653:21;;;;;;;;:::i;:::-;;::::0;;;::::2;::::0;;;::::2;:34:::0;;-1:-1:-1;;8653:34:1::2;-1:-1:-1::0;;;;;8653:34:1;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;8706:62:1::2;8720:14;8706:62;;;8759:8;8706:62;;;;689:25:9::0;;677:2;662:18;;543:177;8706:62:1::2;;;;;;;;8337:1086;;;8844:7;;8818:8;:23;;;8803:12;:38;;;;:::i;:::-;:48;8799:614;;;9037:43:::0;;-1:-1:-1;;9037:43:1::2;9056:24;9037:43:::0;;::::2;::::0;;9103:143:::2;::::0;8799:614:::2;9305:8;:18;;;9293:8;:30;9285:60;;;::::0;-1:-1:-1;;;9285:60:1;;12354:2:9;9285:60:1::2;::::0;::::2;12336:21:9::0;12393:2;12373:18;;;12366:30;12432:19;12412:18;;;12405:47;12469:18;;9285:60:1::2;12152:341:9::0;9285:60:1::2;9363:18;::::0;::::2;:35:::0;;::::2;::::0;::::2;::::0;;-1:-1:-1;9363:35:1;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;;9363:35:1::2;9387:10;9363:35;::::0;;8799:614:::2;9456:24;9436:16:::0;;::::2;;:44;::::0;::::2;;;;;;:::i;:::-;;9432:651;;9496:35;::::0;::::2;;::::0;;;:19:::2;:35;::::0;;;;;;;:45;;;;;;;;9542:10:::2;9496:57:::0;;;;;;;:64;;-1:-1:-1;;9496:64:1::2;9556:4;9496:64;::::0;;9608:16;;9496:64:::2;9608:16;9579:46;::::0;::::2;;;;;;:::i;:::-;;::::0;::::2;::::0;::::2;::::0;::::2;::::0;;;::::2;9787:1;9769:14;;:19;;:66;;;-1:-1:-1::0;9821:14:1::2;::::0;;9792:18;;::::2;:25:::0;:43:::2;;9769:66;9765:308;;;9855:40:::0;;-1:-1:-1;;9855:40:1::2;9874:21;9855:40:::0;;::::2;::::0;;9918:140:::2;::::0;689:25:9;;;9918:140:1::2;::::0;::::2;::::0;::::2;::::0;677:2:9;662:18;9918:140:1::2;;;;;;;;8026:2063;7928:2161:::0;;:::o;5654:274::-;2007:12;:10;:12::i;:::-;-1:-1:-1;;;;;2935:29:2;;2912:4;2935:29;;;:12;;:29;:12;:29;;;;;5738:36:1::1;5730:78;;;::::0;-1:-1:-1;;;5730:78:1;;12700:2:9;5730:78:1::1;::::0;::::1;12682:21:9::0;12739:2;12719:18;;;12712:30;12778:31;12758:18;;;12751:59;12827:18;;5730:78:1::1;12498:353:9::0;5730:78:1::1;5818:37;1285:24;5841:13;5818:9;:37::i;:::-;5870:26;::::0;-1:-1:-1;;;;;5870:26:1;::::1;::::0;::::1;::::0;;;::::1;5906:13;:15:::0;;;:13:::1;:15;::::0;::::1;:::i;4800:70::-:0;2007:12;:10;:12::i;:::-;4853:10:::1;:8;:10::i;:::-;4800:70::o:0;3852:127::-;-1:-1:-1;;;;;2935:29:2;;3915:4:1;2935:29:2;;;:12;;:29;:12;:29;;;;;3938:34:1;2834:137:2;5188:170:1;2007:12;:10;:12::i;:::-;5273:14:::1;:29:::0;;;5317:34:::1;::::0;5290:12;;5317:34:::1;::::0;;;::::1;5188:170:::0;:::o;4566:66::-;2007:12;:10;:12::i;:::-;4617:8:::1;:6;:8::i;10618:614::-:0;2081:20;:18;:20::i;:::-;10768:26:::1;::::0;::::1;10740:25;10768:26:::0;;;:10:::1;:26;::::0;;;;;;;:36;;;;;;;;10843:24:::1;10823:16:::0;;::::1;;:44;::::0;::::1;;;;;;:::i;:::-;;;10815:83;;;::::0;-1:-1:-1;;;10815:83:1;;13058:2:9;10815:83:1::1;::::0;::::1;13040:21:9::0;13097:2;13077:18;;;13070:30;13136:28;13116:18;;;13109:56;13182:18;;10815:83:1::1;12856:350:9::0;10815:83:1::1;10970:7;;10944:8;:23;;;10929:12;:38;;;;:::i;:::-;:48;10908:127;;;::::0;-1:-1:-1;;;10908:127:1;;13413:2:9;10908:127:1::1;::::0;::::1;13395:21:9::0;;;13432:18;;;13425:30;13491:34;13471:18;;;13464:62;13543:18;;10908:127:1::1;13211:356:9::0;10908:127:1::1;11046:43:::0;;-1:-1:-1;;11046:43:1::1;11065:24;11046:43:::0;;::::1;::::0;;;11197:18;::::1;::::0;11104:121:::1;::::0;689:25:9;;;11104:121:1::1;::::0;::::1;::::0;::::1;::::0;677:2:9;662:18;11104:121:1::1;543:177:9::0;4667:147:2;3983:7;4009:12;;;:6;:12;;;;;;;;:22;;2430:30;2441:4;666:10:5;2430::2;:30::i;:::-;4781:26:::1;4793:4;4799:7;4781:11;:26::i;1133:130:0:-:0;1185:13;438:15;452:1;-1:-1:-1;;;438:15:0;:::i;:::-;1218:25;;:38;1210:46;;1133:130;:::o;7056:184:1:-;7163:15;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7163:15:1;7197:26;;;;;;;:10;:26;;;;;;;;:36;;;;;;;;;;7190:43;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7190:43:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7056:184;;;;:::o;1535:441:6:-;1610:13;1635:19;1667:10;1671:6;1667:1;:10;:::i;:::-;:14;;1680:1;1667:14;:::i;:::-;1657:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1657:25:6;;1635:47;;1692:15;:6;1699:1;1692:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1692:15:6;;;;;;;;;1717;:6;1724:1;1717:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1717:15:6;;;;;;;;-1:-1:-1;1747:9:6;1759:10;1763:6;1759:1;:10;:::i;:::-;:14;;1772:1;1759:14;:::i;:::-;1747:26;;1742:132;1779:1;1775;:5;1742:132;;;1813:12;1826:5;1834:3;1826:11;1813:25;;;;;;;:::i;:::-;;;;1801:6;1808:1;1801:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;1801:37:6;;;;;;;;-1:-1:-1;1862:1:6;1852:11;;;;;1782:3;;;:::i;:::-;;;1742:132;;;-1:-1:-1;1891:10:6;;1883:55;;;;-1:-1:-1;;;1883:55:6;;14080:2:9;1883:55:6;;;14062:21:9;;;14099:18;;;14092:30;14158:34;14138:18;;;14131:62;14210:18;;1883:55:6;13878:356:9;1883:55:6;1962:6;1535:441;-1:-1:-1;;;1535:441:6:o;3252:484:2:-;2912:4;2935:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;2935:29:2;;;;;;;;;;;;3327:403;;3515:41;3543:7;-1:-1:-1;;;;;3515:41:2;3553:2;3515:19;:41::i;:::-;3627:38;3655:4;3662:2;3627:19;:38::i;:::-;3422:265;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;3422:265:2;;;;;;;;;;-1:-1:-1;;;3370:349:2;;;;;;;:::i;6572:224::-;2912:4;2935:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;2935:29:2;;;;;;;;;;;;6641:149;;6684:12;;;;6716:4;6684:12;;;;;;;;-1:-1:-1;;;;;6684:29:2;;;;;;;;;;:36;;-1:-1:-1;;6684:36:2;;;;;;;6739:40;;666:10:5;;6684:12:2;;6739:40;;6684:12;6739:40;6572:224;;:::o;6802:225::-;2912:4;2935:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;2935:29:2;;;;;;;;;;;;6872:149;;;6946:5;6914:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;6914:29:2;;;;;;;;;;:37;;-1:-1:-1;;6914:37:2;;;6970:40;666:10:5;;6914:12:2;;6970:40;;6946:5;6970:40;6802:225;;:::o;2474:134:1:-;2555:10;1997:4:2;2935:29;;;:12;;:29;:12;:29;;;;;2519:82:1;;;;-1:-1:-1;;;2519:82:1;;15883:2:9;2519:82:1;;;15865:21:9;15922:2;15902:18;;;15895:30;15961:32;15941:18;;;15934:60;16011:18;;2519:82:1;15681:354:9;2613:130:1;2689:10;2912:4:2;2935:29;;;:12;;:29;:12;:29;;;;;2660:76:1;;;;-1:-1:-1;;;2660:76:1;;16242:2:9;2660:76:1;;;16224:21:9;16281:2;16261:18;;;16254:30;16320:33;16300:18;;;16293:61;16371:18;;2660:76:1;16040:355:9;1528:373:0;1596:32;1647:9;1653:2;1596:32;1647:4;;:9;:::i;:::-;1639:18;;;:::i;:::-;1631:27;-1:-1:-1;1631:27:0;438:15;452:1;-1:-1:-1;;;438:15:0;:::i;:::-;1798:25;:52;;;1865:29;;;1684:37;;;1928:25:9;;;-1:-1:-1;;;1744:40:0;;:44;;1984:2:9;1969:18;;1962:50;;;1684:37:0;;-1:-1:-1;1744:44:0;1865:29;;1901:18:9;1865:29:0;;;;;;;1586:315;;;1528:373;;:::o;2053:117:4:-;1088:4;1111:7;;;1612:41;;;;-1:-1:-1;;;1612:41:4;;16862:2:9;1612:41:4;;;16844:21:9;16901:2;16881:18;;;16874:30;16940:22;16920:18;;;16913:50;16980:18;;1612:41:4;16660:344:9;1612:41:4;2121:5:::1;2111:15:::0;;-1:-1:-1;;2111:15:4::1;::::0;;2141:22:::1;666:10:5::0;2150:12:4::1;2141:22;::::0;-1:-1:-1;;;;;17173:55:9;;;17155:74;;17143:2;17128:18;2141:22:4::1;;;;;;;2053:117::o:0;1806:115::-;1088:4;1111:7;;;1354:9;1346:38;;;;-1:-1:-1;;;1346:38:4;;8496:2:9;1346:38:4;;;8478:21:9;8535:2;8515:18;;;8508:30;-1:-1:-1;;;8554:18:9;;;8547:46;8610:18;;1346:38:4;8294:340:9;1346:38:4;1865:7:::1;:14:::0;;-1:-1:-1;;1865:14:4::1;1875:4;1865:14;::::0;;1894:20:::1;1901:12;666:10:5::0;;587:96;2258:211:1;2360:10;1997:4:2;2935:29;;;:12;;:29;:12;:29;;;;;2332:75:1;;;-1:-1:-1;2396:10:1;2912:4:2;2935:29;;;:12;;:29;:12;:29;;;;;2375:32:1;2311:151;;;;-1:-1:-1;;;2311:151:1;;17442:2:9;2311:151:1;;;17424:21:9;17481:2;17461:18;;;17454:30;17520:31;17500:18;;;17493:59;17569:18;;2311:151:1;17240:353:9;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:332:9;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;180:9;167:23;-1:-1:-1;;;;;;223:5:9;219:78;212:5;209:89;199:117;;312:1;309;302:12;907:180;966:6;1019:2;1007:9;998:7;994:23;990:32;987:52;;;1035:1;1032;1025:12;987:52;-1:-1:-1;1058:23:9;;907:180;-1:-1:-1;907:180:9:o;1092:154::-;-1:-1:-1;;;;;1171:5:9;1167:54;1160:5;1157:65;1147:93;;1236:1;1233;1226:12;1251:315;1319:6;1327;1380:2;1368:9;1359:7;1355:23;1351:32;1348:52;;;1396:1;1393;1386:12;1348:52;1432:9;1419:23;1409:33;;1492:2;1481:9;1477:18;1464:32;1505:31;1530:5;1505:31;:::i;:::-;1555:5;1545:15;;;1251:315;;;;;:::o;2023:375::-;2094:8;2104:6;2158:3;2151:4;2143:6;2139:17;2135:27;2125:55;;2176:1;2173;2166:12;2125:55;-1:-1:-1;2199:20:9;;2242:18;2231:30;;2228:50;;;2274:1;2271;2264:12;2228:50;2311:4;2303:6;2299:17;2287:29;;2371:3;2364:4;2354:6;2351:1;2347:14;2339:6;2335:27;2331:38;2328:47;2325:67;;;2388:1;2385;2378:12;2325:67;2023:375;;;;;:::o;2403:797::-;2533:6;2541;2549;2557;2610:2;2598:9;2589:7;2585:23;2581:32;2578:52;;;2626:1;2623;2616:12;2578:52;2666:9;2653:23;2695:18;2736:2;2728:6;2725:14;2722:34;;;2752:1;2749;2742:12;2722:34;2791:78;2861:7;2852:6;2841:9;2837:22;2791:78;:::i;:::-;2888:8;;-1:-1:-1;2765:104:9;-1:-1:-1;2976:2:9;2961:18;;2948:32;;-1:-1:-1;2992:16:9;;;2989:36;;;3021:1;3018;3011:12;2989:36;;3060:80;3132:7;3121:8;3110:9;3106:24;3060:80;:::i;:::-;2403:797;;;;-1:-1:-1;3159:8:9;-1:-1:-1;;;;2403:797:9:o;3205:163::-;3272:20;;3332:10;3321:22;;3311:33;;3301:61;;3358:1;3355;3348:12;3301:61;3205:163;;;:::o;3373:663::-;3451:6;3459;3467;3520:2;3508:9;3499:7;3495:23;3491:32;3488:52;;;3536:1;3533;3526:12;3488:52;3559:28;3577:9;3559:28;:::i;:::-;3549:38;;3638:2;3627:9;3623:18;3610:32;3661:18;3702:2;3694:6;3691:14;3688:34;;;3718:1;3715;3708:12;3688:34;3756:6;3745:9;3741:22;3731:32;;3801:7;3794:4;3790:2;3786:13;3782:27;3772:55;;3823:1;3820;3813:12;3772:55;3863:2;3850:16;3889:2;3881:6;3878:14;3875:34;;;3905:1;3902;3895:12;3875:34;3950:7;3945:2;3936:6;3932:2;3928:15;3924:24;3921:37;3918:57;;;3971:1;3968;3961:12;3918:57;4002:2;3998;3994:11;3984:21;;4024:6;4014:16;;;;;3373:663;;;;;:::o;4041:387::-;4117:6;4125;4133;4186:2;4174:9;4165:7;4161:23;4157:32;4154:52;;;4202:1;4199;4192:12;4154:52;4225:28;4243:9;4225:28;:::i;:::-;4215:38;;4300:2;4289:9;4285:18;4272:32;4262:42;;4354:2;4343:9;4339:18;4326:32;4367:31;4392:5;4367:31;:::i;:::-;4417:5;4407:15;;;4041:387;;;;;:::o;4433:247::-;4492:6;4545:2;4533:9;4524:7;4520:23;4516:32;4513:52;;;4561:1;4558;4551:12;4513:52;4600:9;4587:23;4619:31;4644:5;4619:31;:::i;4685:252::-;4752:6;4760;4813:2;4801:9;4792:7;4788:23;4784:32;4781:52;;;4829:1;4826;4819:12;4781:52;4852:28;4870:9;4852:28;:::i;:::-;4842:38;4927:2;4912:18;;;;4899:32;;-1:-1:-1;;;4685:252:9:o;4942:184::-;-1:-1:-1;;;4991:1:9;4984:88;5091:4;5088:1;5081:15;5115:4;5112:1;5105:15;5131:299;5217:1;5210:5;5207:12;5197:200;;-1:-1:-1;;;5250:1:9;5243:88;5354:4;5351:1;5344:15;5382:4;5379:1;5372:15;5197:200;5406:18;;5131:299::o;5435:359::-;5641:2;5626:18;;5653:49;5630:9;5684:6;5653:49;:::i;:::-;5733:2;5718:18;;5711:34;;;;5776:2;5761:18;5754:34;5435:359;;-1:-1:-1;5435:359:9:o;5984:981::-;6126:4;6155:2;6184;6173:9;6166:21;6225:3;6214:9;6210:19;6238:65;6299:2;6288:9;6284:18;6275:6;6269:13;6238:65;:::i;:::-;6345:15;;;6339:22;6334:2;6319:18;;;6312:50;;;;6397:15;;6391:22;6449:4;6444:2;6429:18;;6422:32;6503:19;;6531:22;;;;6611:21;;;-1:-1:-1;;6584:3:9;6569:19;;;6660:218;6674:6;6671:1;6668:13;6660:218;;;6739:13;;-1:-1:-1;;;;;6735:62:9;6723:75;;6853:15;;;;6696:1;6689:9;;;;;6818:12;;;;6660:218;;;6664:3;6934:2;6926:6;6922:15;6916:22;6909:4;6898:9;6894:20;6887:52;6956:3;6948:11;;;;;;5984:981;;;;:::o;7386:184::-;-1:-1:-1;;;7435:1:9;7428:88;7535:4;7532:1;7525:15;7559:4;7556:1;7549:15;7575:125;7615:4;7643:1;7640;7637:8;7634:34;;;7648:18;;:::i;:::-;-1:-1:-1;7685:9:9;;7575:125::o;7705:184::-;-1:-1:-1;;;7754:1:9;7747:88;7854:4;7851:1;7844:15;7878:4;7875:1;7868:15;8154:135;8193:3;-1:-1:-1;;8214:17:9;;8211:43;;;8234:18;;:::i;:::-;-1:-1:-1;8281:1:9;8270:13;;8154:135::o;8639:271::-;8822:6;8814;8809:3;8796:33;8778:3;8848:16;;8873:13;;;8848:16;8639:271;-1:-1:-1;8639:271:9:o;10046:331::-;10151:9;10162;10204:8;10192:10;10189:24;10186:44;;;10226:1;10223;10216:12;10186:44;10255:6;10245:8;10242:20;10239:40;;;10275:1;10272;10265:12;10239:40;-1:-1:-1;;10301:23:9;;;10346:25;;;;;-1:-1:-1;10046:331:9:o;10382:369::-;-1:-1:-1;;;;;;10502:19:9;;10624:11;;;;10655:1;10647:10;;10644:101;;;10732:2;10726;10719:3;10716:1;10712:11;10709:1;10705:19;10701:28;10697:2;10693:37;10689:46;10680:55;;10644:101;;;10382:369;;;;:::o;11473:136::-;11512:3;11540:5;11530:39;;11549:18;;:::i;:::-;-1:-1:-1;;;11585:18:9;;11473:136::o;11963:184::-;-1:-1:-1;;;12012:1:9;12005:88;12112:4;12109:1;12102:15;12136:4;12133:1;12126:15;13572:168;13612:7;13678:1;13674;13670:6;13666:14;13663:1;13660:21;13655:1;13648:9;13641:17;13637:45;13634:71;;;13685:18;;:::i;:::-;-1:-1:-1;13725:9:9;;13572:168::o;13745:128::-;13785:3;13816:1;13812:6;13809:1;13806:13;13803:39;;;13822:18;;:::i;:::-;-1:-1:-1;13858:9:9;;13745:128::o;14239:258::-;14311:1;14321:113;14335:6;14332:1;14329:13;14321:113;;;14411:11;;;14405:18;14392:11;;;14385:39;14357:2;14350:10;14321:113;;;14452:6;14449:1;14446:13;14443:48;;;14487:1;14478:6;14473:3;14469:16;14462:27;14443:48;;14239:258;;;:::o;14502:786::-;14913:25;14908:3;14901:38;14883:3;14968:6;14962:13;14984:62;15039:6;15034:2;15029:3;15025:12;15018:4;15010:6;15006:17;14984:62;:::i;:::-;15110:19;15105:2;15065:16;;;15097:11;;;15090:40;15155:13;;15177:63;15155:13;15226:2;15218:11;;15211:4;15199:17;;15177:63;:::i;:::-;15260:17;15279:2;15256:26;;14502:786;-1:-1:-1;;;;14502:786:9:o;15293:383::-;15442:2;15431:9;15424:21;15405:4;15474:6;15468:13;15517:6;15512:2;15501:9;15497:18;15490:34;15533:66;15592:6;15587:2;15576:9;15572:18;15567:2;15559:6;15555:15;15533:66;:::i;:::-;15660:2;15639:15;-1:-1:-1;;15635:29:9;15620:45;;;;15667:2;15616:54;;15293:383;-1:-1:-1;;15293:383:9:o;16400:255::-;16520:19;;16559:2;16551:11;;16548:101;;;-1:-1:-1;;16620:2:9;16616:12;;;16613:1;16609:20;16605:33;16594:45;16400:255;;;;:::o

Swarm Source

ipfs://6a3bd265b8b7e4a37b25e70674be8380734565e08db835e711c6d64b72241ea2

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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.