Closed modersohn closed 2 years ago
This graph snipped brought me on track:
Thanks to monty on discord I just read that NFTs haven token IDs > 32767. And that is exactly how one determines whether the seller (of the NFT!) is A: if tokenIDAS, i.e. the token that A sold, is an NFT, then A is the seller, otherwise it is B. Consequently, if A is selling then fillSA holds the amount of NFTs that were sold, otherwise fillSB.
For everything else we luckily don't have to use the A vs. B logic, because realizedNFTPrice is there.
Oh monty to the rescue again! Yep this was bugging me for the NFT trades!
Fixed with #189
E.g. https://lexplorer.io/transactions/23257-199
This should display the realised NFT price of 100 LRC, instead it shows some bogus E+21 numbers. This could be because token IDs > 32767 are NFTs, not regular traded tokens.