Discover more of Polygon zkEVM's tools and services in one place.
Contract Source Code:
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); }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.