Closed antonyip closed 2 years ago
I'd like to pick this up!
On first look it seems like some rows are coming up empty, and that is because the retrieved log does not relate with a liquidity pool.
Checking some of the transactions not related to a liquidity pool, they indeed aren't swaps. For instance, this one, https://explorer.harmony.one/tx/0x9f82b9609d9d03a6beae1e5653cb685f01554370799b46571233ba0fee7ccbc9?activeTab=0, appears to be a presale mint. It emits a Swap event, which the swaps
model takes and assumes as a LP swap.
In fact, all 50 of these rows that come up null are from the same presale event.
A quick fix is to use an inner join, instead of a left join on liquidity pools.
Time to revisit either the test cases or figure out what is wrong with them.