Skip to content

Commit

Permalink
pindexer supply with destruction (#4866)
Browse files Browse the repository at this point in the history
## Describe your changes

This adjusts the total supply indexer to account for whether or not
value is locked in the dex, the auction component, or locked away after
fees and arbitrage.

This matters because a significant amount of the native token has been
locked in arbitrage, so this affects the end result by about 50% (in
terms of net new supply)

Merge #4863 first.

## Checklist before requesting a review

- [x] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

  > indexing only.
  • Loading branch information
cronokirby authored Sep 26, 2024
1 parent aa1359f commit 555307b
Show file tree
Hide file tree
Showing 3 changed files with 362 additions and 19 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crates/bin/pindexer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ num-bigint = { version = "0.4" }
penumbra-shielded-pool = {workspace = true, default-features = false}
penumbra-stake = {workspace = true, default-features = false}
penumbra-app = {workspace = true}
penumbra-auction = {workspace = true, default-features = false}
penumbra-dex = {workspace = true, default-features = false}
penumbra-fee = {workspace = true, default-features = false}
penumbra-keys = {workspace = true, default-features = false}
penumbra-governance = {workspace = true, default-features = false}
penumbra-num = {workspace = true, default-features = false}
Expand Down
Loading

0 comments on commit 555307b

Please sign in to comment.