Skip to content

Feed price is not using the correct price (e.g for breakdown the payout amount) #3983

Open

Description

@only-dev-time

The feed price used is the most recent price reported by the witnesses in the Condenser (currently $0.043). As a result, the values for SP and STEEM calculated from the pending_payout_value are incorrect.

amounts in condenser:
Image

amounts in steemworld:
Image

However, the correct approach would be to use the value for current_median_history (currently $0.10558).

I think this should be changed:

// Feed price fetching (cached)
globalApiCache
.getOrFetch('feed_history', {}, () => api.getFeedHistoryAsync())
.then(history => {
const feed = history.price_history;
return feed[feed.length - 1];
})
.catch(error => {
console.error('Error fetching feed price:', error);
return null;
}),

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions