vega-frontend-monorepo/specs/7001-COLL-collateral.md
Maciek ef26d03d36
chore(markets): distinguish between product types - add specs (#4564)
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2023-08-17 17:27:15 +01:00

3.1 KiB

Collateral

Collateral Data Grid

  • Must be shown grouped by asset (7001-COLL-001)
  • For each asset:
    • Must show used amount, which is the total of all Margin and Liquidity bond accounts (7001-COLL-002)
    • Must show available amount, which is the total of your General account (7001-COLL-003)
    • Must show total amount, which is the sum of your General account and all Margin accounts (7001-COLL-004)
    • Must show amounts formatted by quantum (7001-COLL-012)
    • Must provide a method for depositing asset (7001-COLL-005)
    • Must provide a method for withdrawing asset (7001-COLL-006)
    • Must show the asset symbol (7001-COLL-007)
    • Must provide a way to see the full asset details (7001-COLL-008)
    • Must provide a way to see all accounts, their type, and their balance for a single asset (7001-COLL-009)
    • Could have default sort order (7001-COLL-010)
      • General
      • Margin
      • Bond
      • Fees - Maker
      • Fees - Liquidity
      • Rewards - Maker Paid
      • Rewards - Maker Received
      • Rewards - Liquidity Provision Received Fees
      • Rewards - Market Proposers

Accounts breakdown

  • Must be able to see a breakdown of accounts for a single asset (7001-COLL-013)
  • Must be able to see the total amount of the selected asset (7001-COLL-014)
  • Must be able to see market code of margin account (7001-COLL-015)
  • Must be able to see product type of the margin account's associated market (7001-COLL-016)
  • Must be able to see account type (7001-COLL-017)
  • Must be able to see account balance (7001-COLL-018)
  • Must be able to see what percentage of that assets total is used by a margin account (7001-COLL-019)
  • Must be able to see margin health if its a margin account (7001-COLL-020)

Margin health

TODO

Deal Ticket

  • Must see your current total margin (General balance + Margin balance - Maintenance level) available (7001-COLL-011)