centrifuge / pools-subql

Subquery for Pools on Centrifuge
MIT License
2 stars 4 forks source link

Fix investor transaction amount calculations #60

Closed sophialittlejohn closed 1 year ago

sophialittlejohn commented 1 year ago

When querying investorTransactions all of the transactions that were considered tokenTypes were returning numbers far too small to be realistic (usually zero). By moving all to the currencyTypes the amounts were calculated properly again. Seems to me that the events actually always return the tokenAmount and therefore it must always be converted into the currencyAmount

TODO:

hieronx commented 1 year ago

Closing in favour of https://github.com/centrifuge/pools-subql/pull/61