DeFiCh / DeFiCh/ain

`setoracledata` transaction to allow setting timestamp per symbol

Open
#747 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
397
Forks
129
PR merge metrics
No merged PRs in 30d

Description

#### What would you like to be added:

Right now `setoracledata` takes a single timestamp for all the symbols/prices passed in. It should ideally take a separate timestamp per symbol/price, as the oracle providers do provide a timestamp per price.

#### Why is this needed:

This would greatly enhance price information and security as we would be able to put more validation methods on the timestamp (Rather than the timestamp being a combined timestamp for every price, which is much less useful).

Contributor guide

Open the contributing guide

Research direction

Begin at the setoracledata transaction entry point and trace how oracle-provider timestamps are represented for each symbol and price. Done means the transaction accepts and preserves a timestamp per symbol/price so timestamp validation can use each value; the issue names no files or tests, so identify coverage while tracing the implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.