Address Contract Verified
Address
0x5CB542EB054f81b8Fa1760c077f44AA80271c75D
Balance
0 ETH
Nonce
1
Code Size
474 bytes
Creator
0xcfaD496f...a781 at tx 0x2874a914...0172a3
Indexed Transactions
0 (1 on-chain, 0.6% indexed)
Contract Bytecode
474 bytes
0x608060405234801561000f575f80fd5b506004361061006f575f3560e01c80637284e4161161004d5780637284e416146100b15780638d859f3e146100fa578063feaf968c14610109575f80fd5b80632e0f262514610073578063313ce5671461009257806350d25bcd14610099575b5f80fd5b61007b601281565b60405160ff90911681526020015b60405180910390f35b601261007b565b670de0b6b3a76400005b604051908152602001610089565b6100ed6040518060400160405280600a81526020017f444f4c41202f205553440000000000000000000000000000000000000000000081525081565b604051610089919061013b565b6100a3670de0b6b3a764000081565b604080515f808252670de0b6b3a76400006020830152918101829052426060820152608081019190915260a001610089565b5f6020808352835180828501525f5b818110156101665785810183015185820160400152820161014a565b505f6040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116850101925050509291505056fea26469706673582212208ccb91e2d9b41700fbf40b5060990740d54c748a513d776337bf7ca72222c71f64736f6c63430008140033
Verified Source Code Full Match
Compiler: v0.8.20+commit.a1b79de6
EVM: shanghai
Optimization: Yes (10000 runs)
DolaFixedPriceFeed.sol 56 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/**
* @title DolaFixedPriceFeed
* @notice Fixed price feed for Dola
* @dev This contract is used to provide a fixed price feed for DOLA within Inverse FiRM Protocol
* Don't use it for external integrations
*/
contract DolaFixedPriceFeed {
uint8 public constant DECIMALS = 18;
int256 public constant PRICE = 1e18;
string public constant description = "DOLA / USD";
/**
* @notice Retrieves the price and current timestamp for DOLA price feed
* @dev This function doens't return the round ID, startedAt and answeredInRound as it's not relevant for DOLA price within Inverse Feeds system
* @return roundId
* @return usdPrice The fixed price of DOLA
* @return startedAt
* @return updatedAt The current timestamp
* @return answeredInRound
*/
function latestRoundData()
public
view
returns (
uint80 roundId,
int256 usdPrice,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
)
{
return (0, PRICE, 0, block.timestamp, 0);
}
/**
* @notice Returns the latest price only
* @dev Unlike chainlink oracles, the latestAnswer will always be the same as in the latestRoundData
* @return int256 Returns the finalized price
*/
function latestAnswer() external view returns (int256) {
(, int256 latestPrice, , , ) = latestRoundData();
return latestPrice;
}
/**
* @notice Retrieves number of decimals for the DOLA price feed conforming to the Chainlink standard
* @return decimals The number of decimals
*/
function decimals() public pure returns (uint8) {
return DECIMALS;
}
}
Read Contract
DECIMALS 0x2e0f2625 → uint8
PRICE 0x8d859f3e → int256
decimals 0x313ce567 → uint8
description 0x7284e416 → string
latestAnswer 0x50d25bcd → int256
latestRoundData 0xfeaf968c → uint80, int256, uint256, uint256, uint80
Recent Transactions
This address has 1 on-chain transactions, but only 0.6% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →