Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live dex statistics #1192

Merged
merged 1 commit into from
Apr 27, 2022
Merged

Live dex statistics #1192

merged 1 commit into from
Apr 27, 2022

Conversation

bvbfan
Copy link
Contributor

@bvbfan bvbfan commented Apr 6, 2022

/kind feature

Live statistics of every swap including intermediates swaps in composite one (the reason is: dex fees)

/v0/live/economy/dex/{poolId}/total_swap_{a/b} - total amount of all swap
/v0/live/economy/dex/{poolId}/total_commission_{a/b} - total commission of all swaps
/v0/live/economy/dex/{poolId}/fee_burn_{a/b} - total amount of burned fees

@prasannavl
Copy link
Member

Let's rename all to lower_case. (fee_burn_a), etc. My bad on missing this early.

1 similar comment
@prasannavl
Copy link
Member

Let's rename all to lower_case. (fee_burn_a), etc. My bad on missing this early.

@bvbfan bvbfan force-pushed the feature/live_dex branch from a42d68c to 4d06b66 Compare April 7, 2022 04:40
@bvbfan bvbfan force-pushed the feature/live_dex branch from b50f70e to 0a54d5a Compare April 15, 2022 09:27
@bvbfan bvbfan changed the base branch from master to v3 April 15, 2022 09:27
@bvbfan bvbfan requested a review from fuxingloh as a code owner April 15, 2022 09:27
@bvbfan bvbfan force-pushed the feature/live_dex branch from 0a54d5a to 39bad92 Compare April 15, 2022 09:38
@bvbfan bvbfan force-pushed the feature/live_dex branch from 39bad92 to 316dbc0 Compare April 27, 2022 05:42
Signed-off-by: Anthony Fieroni <[email protected]>
@bvbfan bvbfan force-pushed the feature/live_dex branch from 316dbc0 to 23ee481 Compare April 27, 2022 06:17
@bvbfan bvbfan merged commit 2e21468 into v3 Apr 27, 2022
@bvbfan bvbfan deleted the feature/live_dex branch April 27, 2022 06:59
bvbfan added a commit that referenced this pull request Apr 27, 2022
Signed-off-by: Anthony Fieroni <[email protected]>
bvbfan added a commit that referenced this pull request Apr 27, 2022
Signed-off-by: Anthony Fieroni <[email protected]>
bvbfan added a commit that referenced this pull request Apr 27, 2022
Signed-off-by: Anthony Fieroni <[email protected]>
bvbfan added a commit that referenced this pull request Apr 27, 2022
Signed-off-by: Anthony Fieroni <[email protected]>
prasannavl added a commit that referenced this pull request Jun 27, 2022
* Live dex statistics (#1192)

Signed-off-by: Anthony Fieroni <[email protected]>

* Force reindex when dex live does not present

Signed-off-by: Anthony Fieroni <[email protected]>

* Add test for swap overflow

* Refactor poolswap tests

Add test cases

* Remove unused variables fixes lint error

* Exclude attributes from merkle root

Signed-off-by: Anthony Fieroni <[email protected]>

* Erase attributes from undos so it is not part of merkle root

* Set token split via SetValue

* Fix test

* Add -dexstats flag for optional usage

* Move SetDexStatsLastHeight at the end of ConnectBlock in the view with undo.

* Fix test

* Fix economy keys

* Fix lints

* Refund DUSD use SetValue

* Update src/masternodes/mn_checks.cpp

Co-authored-by: Prasanna Loganathar <[email protected]>
Co-authored-by: Dcorral <[email protected]>
Co-authored-by: Peter John Bushnell <[email protected]>
Co-authored-by: Mihailo Milenkovic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants