Skip to content

Get Mint Invoices API Endpoint #149

@sadhbh-c0d3

Description

@sadhbh-c0d3

Explorer UI needs to access information about:

  • Mint Invoices

Additionally we may consider if we also need to store any of these:

  • Index Orders
  • Collateral Management
  • Inventory Management
  • Index Order Fill History

TODO

We must deliver these.

Mint Invoices

Explorer UI will allow user to see Mint Invoice comtaining:

  • Summary
  • Asset Allocations (Table w/ Expandable Lots, Value Allocation Breakdown Chart)
  • Collateral Records (Summary DR/CR, Table w/ Expandable Lots)

To Consider

These will need to be stored anyway to support recovery after restart.
Need to think how storing Mint Invoices will fit into greater picture, which also includes those.

Index Orders

User sends new Index Order and we maintain status of the order:

  • new,
  • filled amount
  • collateral engaged
  • minted amount

Collateral Management

User sends new Deposit and we maintain status of that deposit lot:

  • newly received
  • amount routed (to where)
  • amount reserved for ongoing realization of index order
  • amount spent on index order

We assign unique Payment ID to each deposit and spend so that transaction can be easily found and linked to index order.

Inventory Management

Inventory manager not only stores state of the inventory, but also provides a method to replenish.
We must maintain in our records

  • state of the inventory (position, lots, and lot transactions)
  • live orders (orders we sent to exchange and awaiting fill)

Index Order Fill History

While we receive fills from CEX for individual asset orders, we try to match garthered portfolio of assets with pending index orders. Once we find a match, we record a fill for an index order, we send confirmation of the fill over FIX to the user. We should store that confirmation so that we can see the history of how index order was progressively being filled and lots of assets allocated while tha thappened.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions