Verified contractExactMIT
NFTFloorPriceConsumerV3PudgyPenguins
Address0xc2f84ed8a4fae9e397ae036adbea7f51ed2f3c1e
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.7
- Same code
Only this contract
Details
- Compiler
- solc 0.8.7+commit.e28d00a7
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 18,602,487
- Creation transaction
- 0xc1c415c0a6…5178d4848d
NFTFloorPriceConsumerV3PudgyPenguins.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
contract NFTFloorPriceConsumerV3PudgyPenguins {
AggregatorV3Interface internal nftFloorPriceFeed;
/**
* Network: Mainnet
* Aggregator: PudgyPenguins
* Address: 0x9f2ba149c2A0Ee76043d83558C4E79E9F3E5731B
*/
constructor() {
nftFloorPriceFeed = AggregatorV3Interface(
0x9f2ba149c2A0Ee76043d83558C4E79E9F3E5731B
);
}
/**
* Returns the latest price
*/
function getLatestPrice() public view returns (int) {
// prettier-ignore
(
/*uint80 roundID*/,
int nftFloorPrice,
/*uint startedAt*/,
/*uint timeStamp*/,
/*uint80 answeredInRound*/
) = nftFloorPriceFeed.latestRoundData();
return nftFloorPrice;
}
}@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface AggregatorV3Interface {
function decimals() external view returns (uint8);
function description() external view returns (string memory);
function version() external view returns (uint256);
function getRoundData(
uint80 _roundId
) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
function latestRoundData()
external
view
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.