Skip to content

Add protocol fee vaults tracking to the indexer #133

Description

@Hrom131

Describe the feature

Describe the feature

Description

When creating an offer, a Protocol Fee vault is also created, which must be tracked in the same way as a Lender vault. New logic must be added to track Protocol Fee vaults. For this logic, it is advisable to abstract vault tracking and add a new enum, VaultType, with values Lender and ProtocolFee.

Acceptance Criteria:

  • New VaultType enum
  • Updated table to store several vault types
  • LenderVaultsTracker renamed to VaultsTracker
  • OffersTracker updated to seed both VaultType UTXOs during first offer repayment

Dependencies

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions