ETH Price: $2,062.27 (-0.82%)
 

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

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AllocatorOracle

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion
File 1 of 1 : AllocatorOracle.sol
// SPDX-FileCopyrightText: © 2023 Dai Foundation <www.daifoundation.org>
// SPDX-License-Identifier: AGPL-3.0-or-later
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

pragma solidity ^0.8.16;

contract AllocatorOracle {
    uint256 internal constant WAD = 10**18; // For 1:1 price

    /**
        @notice Return value and status of the oracle
        @return val PRICE constant
        @return ok always true
    */
    function peek() public pure returns (bytes32 val, bool ok) {
        val = bytes32(WAD);
        ok  = true;
    }

    /**
        @notice Return value
        @return val PRICE constant
    */
    function read() external pure returns (bytes32 val) {
        val = bytes32(WAD);
    }
}

Settings
{
  "remappings": [
    "ds-test/=lib/dss-test/lib/forge-std/lib/ds-test/src/",
    "dss-interfaces/=lib/dss-test/lib/dss-interfaces/src/",
    "dss-test/=lib/dss-test/src/",
    "forge-std/=lib/dss-test/lib/forge-std/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"name":"peek","outputs":[{"internalType":"bytes32","name":"val","type":"bytes32"},{"internalType":"bool","name":"ok","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"read","outputs":[{"internalType":"bytes32","name":"val","type":"bytes32"}],"stateMutability":"pure","type":"function"}]

6080604052348015600f57600080fd5b5060a38061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c806357de26a414603757806359e02dd7146052575b600080fd5b604051670de0b6b3a764000081526020015b60405180910390f35b60408051670de0b6b3a764000081526001602082015201604956fea2646970667358221220c3e51c101bb9b149593ae8de2acfe08d6e7816344a036223ac208a700371414164736f6c63430008150033

Deployed Bytecode

0x6080604052348015600f57600080fd5b506004361060325760003560e01c806357de26a414603757806359e02dd7146052575b600080fd5b604051670de0b6b3a764000081526020015b60405180910390f35b60408051670de0b6b3a764000081526001602082015201604956fea2646970667358221220c3e51c101bb9b149593ae8de2acfe08d6e7816344a036223ac208a700371414164736f6c63430008150033

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
Loading...
Loading
Loading...
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.