Skip to content

Keep track of all transactions in the graph #143

@lucasvo

Description

@lucasvo

We currently only track ERC20 token transfers but we want to track all types transactions we have in our pool and be able to show a history of a user's past transactions. We should add an entity to the subgraph schema allowing us to track all possible transaction types with the following fields:

  • Timestamp
  • EthTxHash
  • Type: supplyOrder, redeemOrder, supply, redeem, disburseRedeem, disburseSupply, send, receive
  • Token: tokenAddress
  • Junior/Senior
  • Pool: poolId
  • Amount:
    • Denominated in DROP/TIN for redemptions, disburseSupply, send,receive
    • Denominated in DAI for supply, disburseRedeem
  • PendingSupplyOrder: pending amount in DAI if the user still has a pending order that is partially fulfilled
  • PendingRedeemOrder: pending amount in DROP/TIN if the user still has a pending order that is partially fulfilled
  • Token Price at the time of the transaction

Metadata

Metadata

Assignees

No one assigned

    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