ETH Price: $2,002.73 (+6.07%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Price Thresh...236171862025-10-20 6:58:59132 days ago1760943539IN
0xCADA4771...77F5E909c
0 ETH0.00000390.13103397
Set Price Decima...235044932025-10-04 12:43:47148 days ago1759581827IN
0xCADA4771...77F5E909c
0 ETH0.000003720.12515687
Set Price Decima...234901852025-10-02 12:45:35150 days ago1759409135IN
0xCADA4771...77F5E909c
0 ETH0.000017290.58065241
Set Price Thresh...234901512025-10-02 12:38:47150 days ago1759408727IN
0xCADA4771...77F5E909c
0 ETH0.000030370.64786873
Set Price Decima...234901502025-10-02 12:38:35150 days ago1759408715IN
0xCADA4771...77F5E909c
0 ETH0.000030460.64947549

Advanced mode:
Parent Transaction Hash Method Block
From
To
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x2b0E57eC...074Dae1a4
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
STBL_LT1_Oracle

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/access/AccessControl.sol";

import "./interfaces/ISTBL_LT1_AssetOracle.sol";
import "./interfaces/external/IRWAOracle.sol";

import "./lib/STBL_LT1_Asset_Errors.sol";

/** @title STBL LT1 Asset Price Oracle
 * @notice Provides price retrieval functionality for USDY assets
 * @dev Mock oracle implementation for testing purposes with manual price updates
 */
contract STBL_LT1_Oracle is iSTBL_LT1_AssetOracle, AccessControl {
    IRWAOracle public oracle;

    uint256 public PRICE_DECIMALS;

    uint256 public PRICE_THRESHOLD;

    bool public Enabled;

    /** @notice Initializes the USDY price oracle with an oracle address
     * @param _oracleAddr The address of the oracle to be used
     * @dev Constructor sets the oracle address for the contract
     * @custom:oz-upgrades-unsafe-allow constructor
     */
    constructor(address _oracleAddr) AccessControl() {
        _grantRole(DEFAULT_ADMIN_ROLE, _msgSender());
        oracle = IRWAOracle(_oracleAddr);
        Enabled = true;
    }

    /** @notice Enables the oracle
     * @dev Only admin can call this function
     */
    function enableOracle() external onlyRole(DEFAULT_ADMIN_ROLE) {
        Enabled = true;
        emit oracleEnabled();
    }

    /** @notice Disables the oracle
     * @dev Only admin can call this function
     */
    function disableOracle() external onlyRole(DEFAULT_ADMIN_ROLE) {
        Enabled = false;
        emit oracleDisabled();
    }

    /** @notice Sets the number of decimals for price representation
     * @param _decimals The number of decimals to be used for price representation
     * @dev Only admin can call this function
     */
    function setPriceDecimals(
        uint256 _decimals
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        PRICE_DECIMALS = _decimals;
        emit oracleSetDecimals(_decimals);
    }

    /** @notice Sets the price threshold
     * @param _threshold The price threshold to be set
     * @dev Only admin can call this function
     */
    function setPriceThreshold(
        uint256 _threshold
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        PRICE_THRESHOLD = _threshold;
        emit oracleSetPriceThreshold(_threshold);
    }

    /** @notice Gets the number of decimals for the price
     * @return The number of decimals used for price representation (8 decimals)
     */
    function getPriceDecimals() external view returns (uint256) {
        return PRICE_DECIMALS;
    }

    /** @notice Retrieves the current price of the USDY asset
     * @return price The current price of the USDY asset with 8 decimal precision
     * @dev Returns the stored price value for the USDY asset
     */
    function fetchPrice() external view returns (uint256) {
        if (!Enabled) revert STBL_Asset_OracleDisabled();
        (uint256 price, uint256 time) = oracle.getPriceData();
        if (time + PRICE_THRESHOLD <= block.timestamp)
            revert STBL_Asset_OracleStalePrice(price, time);
        return price;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (access/AccessControl.sol)

pragma solidity ^0.8.20;

import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {IERC165, ERC165} from "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * 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. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address account => bool) hasRole;
        bytes32 adminRole;
    }

    mapping(bytes32 role => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with an {AccessControlUnauthorizedAccount} error including the required role.
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /// @inheritdoc IERC165
    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 virtual returns (bool) {
        return _roles[role].hasRole[account];
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
     * is missing `role`.
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert AccessControlUnauthorizedAccount(account, role);
        }
    }

    /**
     * @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 virtual 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.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual 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.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual 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 revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `callerConfirmation`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address callerConfirmation) public virtual {
        if (callerConfirmation != _msgSender()) {
            revert AccessControlBadConfirmation();
        }

        _revokeRole(role, callerConfirmation);
    }

    /**
     * @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);
    }

    /**
     * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
        if (!hasRole(role, account)) {
            _roles[role].hasRole[account] = true;
            emit RoleGranted(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Attempts to revoke `role` from `account` and returns a boolean indicating if `role` was revoked.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
        if (hasRole(role, account)) {
            _roles[role].hasRole[account] = false;
            emit RoleRevoked(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

/**
 * @title STBL Asset Price Oracle Interface
 * @notice Interface for retrieving asset price information in the STBL protocol
 * @dev This interface defines the standard methods for price oracles used by the STBL system
 */
interface iSTBL_LT1_AssetOracle {
    /** @notice Emitted when the oracle is enabled
     */
    event oracleEnabled();

    /** @notice Emitted when the oracle is disabled
     */
    event oracleDisabled();

    /** @notice Emitted when the oracle decimals are set
     * @param _decimals The number of decimals set for price representation
     */
    event oracleSetDecimals(uint256 _decimals);

    /** @notice Emitted when the oracle price threshold is set
     * @param _threshold The price threshold that was set
     */
    event oracleSetPriceThreshold(uint256 _threshold);

    /** @notice Enables the oracle
     * @dev Only admin can call this function
     */
    function enableOracle() external;

    /** @notice Disables the oracle
     * @dev Only admin can call this function
     */
    function disableOracle() external;

    /** @notice Sets the number of decimals for price representation
     * @param _decimals The number of decimals to be used for price representation
     * @dev Only admin can call this function
     */
    function setPriceDecimals(uint256 _decimals) external;

    /** @notice Sets the price threshold
     * @param _threshold The price threshold to be set
     * @dev Only admin can call this function
     */
    function setPriceThreshold(uint256 _threshold) external;

    /** @notice Gets the number of decimals for the price
     * @return The number of decimals used for price representation (8 decimals)
     */
    function getPriceDecimals() external view returns (uint256);

    /** @notice Retrieves the current price of the USDY asset
     * @return price The current price of the USDY asset with 8 decimal precision
     * @dev Returns the stored price value for the USDY asset
     */
    function fetchPrice() external view returns (uint256);
}

//SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.20;

interface IRWAOracle {
    /// @notice Retrieve RWA price data
    function getPriceData()
        external
        view
        returns (uint256 price, uint256 timestamp);
}

File 5 of 9 : STBL_LT1_Asset_Errors.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

/**
 * @notice Thrown when the asset setup is not complete or inactive
 * @param id The ID of the asset that is not properly setup
 */
error STBL_Asset_SetupNotComplete(uint256 id);

/**
 * @notice Thrown when an unauthorized issuer attempts an operation
 * @dev Used in the isValidIssuer modifier to restrict access
 * @param id The ID of the asset with the invalid issuer
 */
error STBL_Asset_InvalidIssuer(uint256 id);

/**
 * @notice Thrown when the calling address is not the valid vault contract
 * @param id The ID of the asset with the invalid vault address
 */
error STBL_Asset_InvalidVault(uint256 id);

/**
 * @notice Thrown when attempting to interact with an invalid asset
 * @param id The ID of the invalid asset
 */
error STBL_Asset_InvalidAsset(uint256 id);

/**
 * @notice Thrown when attempting to call a function before contract initialization
 * @param id The ID of the uninitialized asset
 */
error STBL_Asset_NotInitialized(uint256 id);

/**
 * @notice Thrown when attempting to initialize an already initialized asset
 * @param id The ID of the asset that is already initialized
 */
error STBL_Asset_Initialized(uint256 id);

/**
 * @notice Thrown when attempting to withdraw before the required duration has passed
 * @param id The ID of the asset where early withdrawal was attempted
 * @param _tokenID The token ID for which withdrawal was attempted too early
 */
error STBL_Asset_WithdrawDurationNotReached(uint256 id, uint256 _tokenID);

/**
 * @notice Thrown when attempting to claim yield before the required duration has passed
 * @param id The ID of the asset where early yield claim was attempted
 * @param duration The required duration that must be satisfied before claiming yield
 */
error STBL_Asset_YieldDurationNotReached(uint256 id, uint256 duration);

/**
 * @notice Thrown when the vault value is insufficient compared to the asset value
 * @param _assetValue The current asset value that is being compared
 * @param _usdValue The USD value that is insufficient for the operation
 */
error STBL_Asset_InsufficientVaultValue(uint256 _assetValue, uint256 _usdValue);

/**
 * @notice Thrown when an invalid deposit amount is provided
 * @param assetID The ID of the asset for which the invalid deposit was attempted
 * @param amount The invalid deposit amount that was provided
 */
error STBL_Asset_InvalidDepositAmount(uint256 assetID, uint256 amount);
/**
 * @notice Thrown when the oracle price is stale or outdated
 * @param price The stale price value returned by the oracle
 * @param time The timestamp when the stale price was last updated
 */
error STBL_Asset_OracleStalePrice(uint256 price, uint256 time);

/**
 * @notice Thrown when the oracle is disabled or not available
 */
error STBL_Asset_OracleDisabled();

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (access/IAccessControl.sol)

pragma solidity >=0.8.4;

/**
 * @dev External interface of AccessControl declared to support ERC-165 detection.
 */
interface IAccessControl {
    /**
     * @dev The `account` is missing a role.
     */
    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);

    /**
     * @dev The caller of a function is not the expected one.
     *
     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
     */
    error AccessControlBadConfirmation();

    /**
     * @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 to signal this.
     */
    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. This account bears the admin role (for the granted role).
     * Expected in cases where the role was granted using the internal {AccessControl-_grantRole}.
     */
    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 `callerConfirmation`.
     */
    function renounceRole(bytes32 role, address callerConfirmation) external;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC-165 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);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /// @inheritdoc IERC165
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * 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[ERC 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);
}

Settings
{
  "remappings": [
    "@openzeppelin/=node_modules/@openzeppelin/",
    "forge-std/=lib/forge-std/src/",
    "eth-gas-reporter/=node_modules/eth-gas-reporter/",
    "hardhat/=node_modules/hardhat/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": true
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_oracleAddr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"STBL_Asset_OracleDisabled","type":"error"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"time","type":"uint256"}],"name":"STBL_Asset_OracleStalePrice","type":"error"},{"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":[],"name":"oracleDisabled","type":"event"},{"anonymous":false,"inputs":[],"name":"oracleEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_decimals","type":"uint256"}],"name":"oracleSetDecimals","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"oracleSetPriceThreshold","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Enabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_DECIMALS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_THRESHOLD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fetchPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPriceDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[],"name":"oracle","outputs":[{"internalType":"contract IRWAOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","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":"uint256","name":"_decimals","type":"uint256"}],"name":"setPriceDecimals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setPriceThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

0x60803461008757601f61088538819003918201601f19168301916001600160401b0383118484101761008c5780849260209460405283398101031261008757516001600160a01b038116908190036100875761005a336100a2565b5060018060a01b03196001541617600155600160ff19600454161760045560405161073490816101318239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381166000908152600080516020610865833981519152602052604090205460ff1661012a576001600160a01b0316600081815260008051602061086583398151915260205260408120805460ff191660011790553391907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a4600190565b5060009056fe608080604052600436101561001357600080fd5b60003560e01c90816301ffc9a7146104ea575080630fdb11cf146103ca5780631b30aafc146100da578063248a9ca314610395578063292c914a146103485780632f2ff15d14610316578063317c94ba146102ca57806336568abe146102925780634fb52c70146102465780635ed4c4dd146102285780636da79605146101de5780637dc0d1d0146101b557806391d1485414610175578063a217fddf14610159578063c0f9610514610136578063d547741f146100fd5763f1a640f8146100da57600080fd5b346100f85760003660031901126100f8576020600254604051908152f35b600080fd5b346100f85761013461010e3661053d565b9061012f61012a82600052600060205260016040600020015490565b6105b6565b61067c565b005b346100f85760003660031901126100f857602060ff600454166040519015158152f35b346100f85760003660031901126100f857602060405160008152f35b346100f8576101833661053d565b90600052600060205260406000209060018060a01b0316600052602052602060ff604060002054166040519015158152f35b346100f85760003660031901126100f8576001546040516001600160a01b039091168152602090f35b346100f85760003660031901126100f8576101f7610563565b60ff19600454166004557fa24f50be5782f88508adf0fe0c6dd349544fe287d3a55fccead502fc6915d49a600080a1005b346100f85760003660031901126100f8576020600354604051908152f35b346100f85760203660031901126100f8577fb4449793e92b4a77cd5a9e4e404b4c86186ca4abe0bac150bff6401b6708d44c6020600435610285610563565b80600355604051908152a1005b346100f8576102a03661053d565b336001600160a01b038216036102b9576101349161067c565b63334bd91960e11b60005260046000fd5b346100f85760203660031901126100f8577f7075c289112b4c0dd908de751560e0b9ccc4b79581961b082a6645b4ac8909b96020600435610309610563565b80600255604051908152a1005b346100f8576101346103273661053d565b9061034361012a82600052600060205260016040600020015490565b6105f1565b346100f85760003660031901126100f857610361610563565b600160ff1960045416176004557f756a24e49495665490f39b344f9c6ef3f7d4bc52bd3f8068bb633106d9ea0e56600080a1005b346100f85760203660031901126100f85760206103c2600435600052600060205260016040600020015490565b604051908152f35b346100f85760003660031901126100f85760ff60045416156104d95760015460408051631494502d60e31b815291829060049082906001600160a01b03165afa9081156104cd576000908192610467575b5060035482018083116104515742101561043a57602090604051908152f35b630fe0fe9760e31b60005260045260245260446000fd5b634e487b7160e01b600052601160045260246000fd5b915060403d6040116104c6575b601f8101601f1916830167ffffffffffffffff8111848210176104b25760409184918352810103126104af575060208151910151908261041b565b80fd5b634e487b7160e01b83526041600452602483fd5b503d610474565b6040513d6000823e3d90fd5b6301a93c3d60e71b60005260046000fd5b346100f85760203660031901126100f8576004359063ffffffff60e01b82168092036100f857602091637965db0b60e01b811490811561052c575b5015158152f35b6301ffc9a760e01b14905083610525565b60409060031901126100f857600435906024356001600160a01b03811681036100f85790565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff161561059c57565b63e2517d3f60e01b60005233600452600060245260446000fd5b60008181526020818152604080832033845290915290205460ff16156105d95750565b63e2517d3f60e01b6000523360045260245260446000fd5b6000818152602081815260408083206001600160a01b038616845290915290205460ff16610675576000818152602081815260408083206001600160a01b0395909516808452949091528120805460ff19166001179055339291907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9080a4600190565b5050600090565b6000818152602081815260408083206001600160a01b038616845290915290205460ff1615610675576000818152602081815260408083206001600160a01b0395909516808452949091528120805460ff19169055339291907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9080a460019056fea2646970667358221220831e0e6c63c650fcf03b54e30ab4d7a7ef850c0d38fc155ac0f1052876527a7e64736f6c634300081c0033ad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb50000000000000000000000000502c5ae08e7cd64fe1aeda7d6e229413ecc6abe

Deployed Bytecode

0x608080604052600436101561001357600080fd5b60003560e01c90816301ffc9a7146104ea575080630fdb11cf146103ca5780631b30aafc146100da578063248a9ca314610395578063292c914a146103485780632f2ff15d14610316578063317c94ba146102ca57806336568abe146102925780634fb52c70146102465780635ed4c4dd146102285780636da79605146101de5780637dc0d1d0146101b557806391d1485414610175578063a217fddf14610159578063c0f9610514610136578063d547741f146100fd5763f1a640f8146100da57600080fd5b346100f85760003660031901126100f8576020600254604051908152f35b600080fd5b346100f85761013461010e3661053d565b9061012f61012a82600052600060205260016040600020015490565b6105b6565b61067c565b005b346100f85760003660031901126100f857602060ff600454166040519015158152f35b346100f85760003660031901126100f857602060405160008152f35b346100f8576101833661053d565b90600052600060205260406000209060018060a01b0316600052602052602060ff604060002054166040519015158152f35b346100f85760003660031901126100f8576001546040516001600160a01b039091168152602090f35b346100f85760003660031901126100f8576101f7610563565b60ff19600454166004557fa24f50be5782f88508adf0fe0c6dd349544fe287d3a55fccead502fc6915d49a600080a1005b346100f85760003660031901126100f8576020600354604051908152f35b346100f85760203660031901126100f8577fb4449793e92b4a77cd5a9e4e404b4c86186ca4abe0bac150bff6401b6708d44c6020600435610285610563565b80600355604051908152a1005b346100f8576102a03661053d565b336001600160a01b038216036102b9576101349161067c565b63334bd91960e11b60005260046000fd5b346100f85760203660031901126100f8577f7075c289112b4c0dd908de751560e0b9ccc4b79581961b082a6645b4ac8909b96020600435610309610563565b80600255604051908152a1005b346100f8576101346103273661053d565b9061034361012a82600052600060205260016040600020015490565b6105f1565b346100f85760003660031901126100f857610361610563565b600160ff1960045416176004557f756a24e49495665490f39b344f9c6ef3f7d4bc52bd3f8068bb633106d9ea0e56600080a1005b346100f85760203660031901126100f85760206103c2600435600052600060205260016040600020015490565b604051908152f35b346100f85760003660031901126100f85760ff60045416156104d95760015460408051631494502d60e31b815291829060049082906001600160a01b03165afa9081156104cd576000908192610467575b5060035482018083116104515742101561043a57602090604051908152f35b630fe0fe9760e31b60005260045260245260446000fd5b634e487b7160e01b600052601160045260246000fd5b915060403d6040116104c6575b601f8101601f1916830167ffffffffffffffff8111848210176104b25760409184918352810103126104af575060208151910151908261041b565b80fd5b634e487b7160e01b83526041600452602483fd5b503d610474565b6040513d6000823e3d90fd5b6301a93c3d60e71b60005260046000fd5b346100f85760203660031901126100f8576004359063ffffffff60e01b82168092036100f857602091637965db0b60e01b811490811561052c575b5015158152f35b6301ffc9a760e01b14905083610525565b60409060031901126100f857600435906024356001600160a01b03811681036100f85790565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff161561059c57565b63e2517d3f60e01b60005233600452600060245260446000fd5b60008181526020818152604080832033845290915290205460ff16156105d95750565b63e2517d3f60e01b6000523360045260245260446000fd5b6000818152602081815260408083206001600160a01b038616845290915290205460ff16610675576000818152602081815260408083206001600160a01b0395909516808452949091528120805460ff19166001179055339291907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9080a4600190565b5050600090565b6000818152602081815260408083206001600160a01b038616845290915290205460ff1615610675576000818152602081815260408083206001600160a01b0395909516808452949091528120805460ff19169055339291907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9080a460019056fea2646970667358221220831e0e6c63c650fcf03b54e30ab4d7a7ef850c0d38fc155ac0f1052876527a7e64736f6c634300081c0033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.