ETH Price: $1,979.56 (-2.15%)

Contract

0x9F7779A8aF28De91262ba9d6383fEf899102E876

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

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

Contract Name:
AlwaysOnlineOracleSentinel

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 2 : AlwaysOnlineOracleSentinel.sol
/*

    Copyright 2020 Dolomite.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

*/

pragma solidity ^0.5.7;
pragma experimental ABIEncoderV2;

import { IOracleSentinel } from "../../protocol/interfaces/IOracleSentinel.sol";


/**
 * @title AlwaysOnlineOracleSentinel
 * @author Dolomite
 *
 * An implementation of the IOracleSentinel interface that always returns `true` for its implementation functions.
 * Useful for deployments on networks that don't need an oracle sentinel.
 */
contract AlwaysOnlineOracleSentinel is IOracleSentinel {

    function ownerSetGracePeriod(
        uint256 /* _gracePeriod */
    ) external {
        revert("AlwaysOnlineOracleSentinel: Not implemented");
    }

    function isBorrowAllowed() external view returns (bool) {
        return true;
    }

    function isLiquidationAllowed() external view returns (bool) {
        return true;
    }

    function gracePeriod() external view returns (uint256) {
        return 0;
    }
}

File 2 of 2 : IOracleSentinel.sol
/*

    Copyright 2023 Dolomite

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

*/

pragma solidity ^0.5.7;
pragma experimental ABIEncoderV2;


/**
 * @title IOracleSentinel
 * @author Dolomite
 *
 * Interface that Dolomite pings to check if the Blockchain or L2 is alive, if liquidations should be processed, and if
 * markets should are in size-down only mode.
 */
contract IOracleSentinel {

    // ============ Events ============

    event GracePeriodSet(
        uint256 gracePeriod
    );

    // ============ Functions ============

    /**
     * @dev Allows the owner to set the grace period duration, which specifies how long the system will disallow
     *      liquidations after sequencer is back online. Only callable by the owner.
     *
     * @param _gracePeriod  The new duration of the grace period
     */
    function ownerSetGracePeriod(
        uint256 _gracePeriod
    )
        external;

    /**
     * @return True if new borrows should be allowed, false otherwise
     */
    function isBorrowAllowed() external view returns (bool);

    /**
     * @return True if liquidations should be allowed, false otherwise
     */
    function isLiquidationAllowed() external view returns (bool);

    /**
     * @return  The duration between when the feed comes back online and when the system will allow liquidations to be
     *          processed normally
     */
    function gracePeriod() external view returns (uint256);
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"gracePeriod","type":"uint256"}],"name":"GracePeriodSet","type":"event"},{"constant":true,"inputs":[],"name":"gracePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isBorrowAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isLiquidationAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ownerSetGracePeriod","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806335784f1f1461005157806349aa2e81146100665780637a5d20ea14610066578063a06db7dc14610084575b600080fd5b61006461005f3660046100ef565b610099565b005b61006e6100d4565b60405161007b919061018c565b60405180910390f35b61008c6100d9565b60405161007b91906101aa565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100cb9061019a565b60405180910390fd5b600190565b600090565b80356100e9816101c9565b92915050565b60006020828403121561010157600080fd5b600061010d84846100de565b949350505050565b61011e816101c1565b82525050565b6000610131602b836101b8565b7f416c776179734f6e6c696e654f7261636c6553656e74696e656c3a204e6f742081527f696d706c656d656e746564000000000000000000000000000000000000000000602082015260400192915050565b61011e816101c6565b602081016100e98284610115565b602080825281016100e981610124565b602081016100e98284610183565b90815260200190565b151590565b90565b6101d2816101c6565b81146101dd57600080fd5b5056fea365627a7a723158200e3ad5598cdc220a39ebd6a4783e1a112b57b815f28762917f341eef33fd60236c6578706572696d656e74616cf564736f6c63430005100040

Block Transaction Gas Used Reward
view all blocks sequenced

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

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.