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

Expose key Vault Factory economic data via subscription #4649

Closed
Tartuffo opened this issue Feb 23, 2022 · 0 comments · Fixed by #5260
Closed

Expose key Vault Factory economic data via subscription #4649

Tartuffo opened this issue Feb 23, 2022 · 0 comments · Fixed by #5260
Assignees
Labels
Inter-protocol Overarching Inter Protocol Vaults VaultFactor (née Treasury)
Milestone

Comments

@Tartuffo
Copy link
Contributor

Tartuffo commented Feb 23, 2022

This data can be used in Blockchain Explorers and via sites like The Graph for the community to get key information about the state of the RUN Protocol components.

From our meeting on Feb 22, here is the data we want to expose from the Vault Factory:

Per Contract (Director object)

  • Governance parameters, contract terms, fees governed
  • Allowed collateral types
  • Current reward pool (fees collected so far)
  • Number and amount of shortfall

Per Collateral (Manager object)

  • Governance parameters, including interest rate, liquidation ratio, liquidation penalty per collateral, current debt limit governed
  • Current debt limit governed
  • Number of vaults
  • Total outstanding debt (vaultKit publicNotifiers.asset)
  • Total collateral held
  • Compounded interest (vaultKit publicNotifiers.asset)
  • Liquidation strategy governed
  • Liquidation state (how much is currently being liquidated)
    1. Collateral being sold
    2. Amount sold so far
    3. Proceeds so far

Per Vault

  • Debt (debtSnapshot.debt)
  • Collateral (locked)
  • Interest snapshot (debtSnapshot.interest)
  • Status (open, closed, liquidating, liquidated) vaultState

Use existing notifiers except for values that have high change frequency.

@Tartuffo Tartuffo added the Inter-protocol Overarching Inter Protocol label Feb 23, 2022
@Chris-Hibbert Chris-Hibbert added the Vaults VaultFactor (née Treasury) label Mar 10, 2022
@Tartuffo Tartuffo added this to the Mainnet 1 milestone Mar 23, 2022
@mergify mergify bot closed this as completed in #5260 May 18, 2022
@turadg turadg changed the title Expose key Vault Factory economic data via RPC and notification stream Expose key Vault Factory economic data via subscription May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Inter-protocol Overarching Inter Protocol Vaults VaultFactor (née Treasury)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants