Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Investments & Vault Balance tracking #21

Open
@SovereignAndrey

Description

@SovereignAndrey

We need a way to capture and track the following from Vault investments (both invest/redeem directions apply):

  • AccountsStrategy Invest events for an endowment:
    • Token address
    • Strategy Key
    • Destination Chain
    • Endowment ID
    • Locked / Liquid amounts
  • AccountsStrategy Redeem events for an endowment:
    • Token amount
    • Strategy key
    • Destination Chain
    • Locked / Liquid Amounts
    • Endowment ID
  • Router cross-chain transaction status set/update events should update in the "AccountsStrategy" record. Possibly like a "routerStatus" field?
  • Lookup a Vault balance by endowment ID
    • ie. What is the vault shares balance for a given Endowment ID?
  • Vault balances updated upon deposit / withdraw event
    • Similar to Accounts balances adjustments done today in Polygon subgraph for Accounts deposit/withdraw events

COS

  • Polygon subgraph captures AccountsStrategy invest/redeem events and records them
  • Polygon subgraph captures Router events and records them for status change
  • New Ethereum subgraph exists for tracking Vault balances for each endowment and updates them as deposit/withdraw events get emitted

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions