[evm] Oracle precompile UX would be improved by update time information #2075
Labels
ecosytem-tools
Tooling or infrastructure with clear demand from applications or end users of Nibiru
x: evm
Relates to Nibiru EVM or the EVM Module
Problem
Solution
Here are some common interfaces that are standard for many Ethereum developers:
The Oracle Module exposes all of this information, so we can implement both of these interfaces over time on Nibiru's Oracle.sol precompiled contract. Let's focus on the ChainLink one for now since that's been cited as a more common request and handle the Pyth interface as a separate ticket.
The Ask
npm
dependency and write an "is" statement to guarantee compatibility for users that import the precompiled contract.2024-11-08 - Note on User Expectations
I asked around to a few of the teams building apps on top of Nibiru, and all of them mentioned that they want to follow the conventions for constants that are seen on Ethereum.
decimals (uint8)
to 8 in the ChainLink interface is the most common.getRoundData
for historical data in their contracts. Everyone used thelatestRoundData
method and ignored the values forroundId
andansweredInRound
, paying attention only to timestamps and the data feed value (price).The text was updated successfully, but these errors were encountered: