bitshares / bitshares/bitshares-explorer-api

/top_proxy does not takes open orders into account

Open
#62 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
33
Forks
48
PR merge metrics
No merged PRs in 30d

Description

`top_proxy`, computes the voting weight from the object-balance ES index, which does not include open orders. However the voting weight of a proxy takes into account all the balance + open order of the delegated accounts.

Ideally voting_weight should be retrieved from core node as the computation may change (see voting decay BSIP).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the `top_proxy` endpoint and trace how it obtains voting weight from the object-balance ES index. Compare that value with the delegated accounts' balance and open orders, and review whether the core node exposes the authoritative voting weight, including possible voting decay changes. Done means `/top_proxy` accounts for open orders or retrieves the core node's voting weight.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, python
Domain
api, backend, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.