Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep track of all transactions in the graph #143

Open
lucasvo opened this issue Jul 27, 2021 · 0 comments
Open

Keep track of all transactions in the graph #143

lucasvo opened this issue Jul 27, 2021 · 0 comments

Comments

@lucasvo
Copy link
Member

lucasvo commented Jul 27, 2021

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
@lucasvo lucasvo changed the title Keep track of all Transactions in the graph Keep track of all transactions in the graph Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant