ETH Price: $3,133.45 (+1.28%)

Contract

0xc3fA1b049449760476d8D17681278afd32d5FD75

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x608060402184262023-05-12 11:41:42427 days ago1683891702IN
 Create: FastPriceFeedReader
0 ETH0.001165426.41

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

Contract Source Code Verified (Exact Match)

Contract Name:
FastPriceFeedReader

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion
File 1 of 2 : FastPriceFeedReader.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "./interfaces/IFastPriceFeedForReader.sol";

contract FastPriceFeedReader {
    function getPrices(address _fastPriceFeed,
    address[] memory _tokens
    ) public view returns (uint256[] memory) {

        IFastPriceFeedForReader fastPriceFeed = IFastPriceFeedForReader(_fastPriceFeed);

        uint256[] memory prices = new uint256[](_tokens.length);
        for (uint256 i = 0; i < _tokens.length; i++) {
            address token = _tokens[i];
            prices[i] = fastPriceFeed.prices(token);
        }

        return prices;
    }
}

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

pragma solidity 0.6.12;

interface IFastPriceFeedForReader {
    function prices(address _token) external view returns (uint256);
}

Settings
{
  "metadata": {
    "bytecodeHash": "none",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 1
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_fastPriceFeed","type":"address"},{"internalType":"address[]","name":"_tokens","type":"address[]"}],"name":"getPrices","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50610253806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80633613d52714610030575b600080fd5b6100e16004803603604081101561004657600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561007057600080fd5b82018360208201111561008257600080fd5b803590602001918460208302840111600160201b831117156100a357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610131945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561011d578181015183820152602001610105565b505050509050019250505060405180910390f35b60606000839050606083516001600160401b038111801561015157600080fd5b5060405190808252806020026020018201604052801561017b578160200160208202803683370190505b50905060005b845181101561023d57600085828151811061019857fe5b60200260200101519050836001600160a01b031663cfed246b826040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156101ef57600080fd5b505afa158015610203573d6000803e3d6000fd5b505050506040513d602081101561021957600080fd5b5051835184908490811061022957fe5b602090810291909101015250600101610181565b5094935050505056fea164736f6c634300060c000a

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80633613d52714610030575b600080fd5b6100e16004803603604081101561004657600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561007057600080fd5b82018360208201111561008257600080fd5b803590602001918460208302840111600160201b831117156100a357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610131945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561011d578181015183820152602001610105565b505050509050019250505060405180910390f35b60606000839050606083516001600160401b038111801561015157600080fd5b5060405190808252806020026020018201604052801561017b578160200160208202803683370190505b50905060005b845181101561023d57600085828151811061019857fe5b60200260200101519050836001600160a01b031663cfed246b826040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156101ef57600080fd5b505afa158015610203573d6000803e3d6000fd5b505050506040513d602081101561021957600080fd5b5051835184908490811061022957fe5b602090810291909101015250600101610181565b5094935050505056fea164736f6c634300060c000a

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