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

Add the capcity of iBTC/kBTC that can be minted #49

Open
nud3l opened this issue Jan 10, 2023 · 0 comments
Open

Add the capcity of iBTC/kBTC that can be minted #49

nud3l opened this issue Jan 10, 2023 · 0 comments
Labels
enhancement New feature or request prio:medium

Comments

@nud3l
Copy link
Member

nud3l commented Jan 10, 2023

Goal

Store the total capacity of all vaults of iBTC/kBTC that can be minted at a given point in time.

Implementation approach

  • Store the total capacity of all vaults as a type BridgeCapacity in the cumulativeVolumes.
  • Update the capacity on the following events:
    • Vault registers, deposits or withdraws collateral
    • Exchange rate is updated (exchange rate is stored in BTC)

Context

image

@nud3l nud3l added enhancement New feature or request prio:medium labels Jan 10, 2023
@nud3l nud3l added this to Backlog Jan 10, 2023
@github-project-automation github-project-automation bot moved this to New 🆕 in Backlog Jan 10, 2023
@nud3l nud3l changed the title Add a capacity statistic Add the capcity of iBTC/kBTC that can be minted Jan 10, 2023
@jtfirek jtfirek self-assigned this Jan 10, 2023
@nud3l nud3l moved this from New 🆕 to Todo ⏳ in Backlog Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request prio:medium
Projects
Status: Todo
Development

No branches or pull requests

2 participants