Discover more of Apescan's tools and services in one place.
Contract Source Code:
File 1 of 2 : IChainlinkFeed.sol
// SPDX-License-Identifier: MIT pragma solidity 0.8.23; /** * @dev Interface for Chainlink feeds */ interface IChainlinkFeed { function latestRoundData() external view returns (uint80, int256, uint256, uint256, uint80); function decimals() external view returns (uint8); }
File 2 of 2 : IOUChainlinkFeed.sol
// SPDX-License-Identifier: MIT pragma solidity 0.8.23; import "../interfaces/IChainlinkFeed.sol"; /** * @dev Mock CL Feed contract for an IOU token hardcoded at 1e8 price */ contract IOUFeed is IChainlinkFeed { function decimals() external pure returns (uint8) { return 8; } /** * @dev Returns a hardcoded 1e8 price for a mock token */ function latestRoundData() external pure returns (uint80, int256 priceUsd, uint256, uint256, uint80) { return (0, 1e8, 0, 0, 0); } }
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.