ETH Price: $3,317.31 (+1.66%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Amount:Between 1-10k
Reset Filter

Transaction Hash
Method
Block
From
To

There are no matching entries

Update your filters to view other transactions

Amount:Between 1-10k
Reset Filter

Advanced mode:
Parent Transaction Hash Method Block
From
To

There are no matching entries

Update your filters to view other transactions

View All Internal Transactions
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

Contract Source Code Verified (Exact Match)

Contract Name:
ConstantAggregatorV3

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: BSL-1.1
pragma solidity 0.8.25;

import "../interfaces/external/chainlink/IAggregatorV3.sol";

contract ConstantAggregatorV3 is IAggregatorV3 {
    uint8 public constant decimals = 18;
    int256 public immutable answer;

    constructor(int256 _answer) {
        answer = _answer;
    }

    function latestRoundData()
        public
        view
        override
        returns (uint80, int256, uint256, uint256, uint80)
    {
        return (0, answer, block.timestamp, block.timestamp, 0);
    }
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.25;

interface IAggregatorV3 {
    function decimals() external view returns (uint8);

    function latestRoundData()
        external
        view
        returns (
            uint80 roundId,
            int256 answer,
            uint256 startedAt,
            uint256 updatedAt,
            uint80 answeredInRound
        );
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "@symbiotic/=lib/core/src/contracts/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200,
    "details": {
      "yul": true,
      "yulDetails": {
        "stackAllocation": true
      }
    }
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"int256","name":"_answer","type":"int256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"answer","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestRoundData","outputs":[{"internalType":"uint80","name":"","type":"uint80"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"}]

60a0604052348015600f57600080fd5b50604051610180380380610180833981016040819052602c916033565b608052604b565b600060208284031215604457600080fd5b5051919050565b60805161011561006b6000396000818160630152609d01526101156000f3fe6080604052348015600f57600080fd5b5060043610603c5760003560e01c8063313ce56714604157806385bb7d6914605f578063feaf968c146092575b600080fd5b6048601281565b60405160ff90911681526020015b60405180910390f35b60857f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016056565b6040805160008082527f00000000000000000000000000000000000000000000000000000000000000006020830152429282018390526060820192909252608081019190915260a001605656fea2646970667358221220401c74236a2994dad33c0cff2adc8e23908f7395b22307bb7b55767f2053fd1864736f6c634300081900330000000000000000000000000000000000000000000000000de0b6b3a7640000

Deployed Bytecode

0x6080604052348015600f57600080fd5b5060043610603c5760003560e01c8063313ce56714604157806385bb7d6914605f578063feaf968c146092575b600080fd5b6048601281565b60405160ff90911681526020015b60405180910390f35b60857f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b6040519081526020016056565b6040805160008082527f0000000000000000000000000000000000000000000000000de0b6b3a76400006020830152429282018390526060820192909252608081019190915260a001605656fea2646970667358221220401c74236a2994dad33c0cff2adc8e23908f7395b22307bb7b55767f2053fd1864736f6c63430008190033

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

0000000000000000000000000000000000000000000000000de0b6b3a7640000

-----Decoded View---------------
Arg [0] : _answer (int256): 1000000000000000000

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000


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