ETH Price: $3,168.15 (-4.29%)

Contract Diff Checker

Contract Name:
FastPriceFeedReader

Contract Source Code:

// 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;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

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

Please enter a contract address above to load the contract details and source code.

Context size (optional):