Cost basis issue

I’m having some trouble trying to work out what’s happening here as the cost basis seems completely wrong:

On 10th Feb I purchased 0.475NYAN for 1BUSD (£0.73). This was added to a pool and generated reward income of 152.48NYAN (£232.29). Making a total balance of 152.49 worth £233.01.

The next morning I sell 70NYAN (Total value from previous purchases of £106.96) for 3.28BNB (£292.57). This should be a profit of £185.61, yet is showing as a loss of £29.30 as the cost basis is showing £321.87.

Drilling down in to how it could possibly have got this cost basis, it is using a value from 2 hours AFTER the sale took place!

Please help me understand this as nothing makes any sense!

I’m going to assume this is correct and just tax is very confusing. So it looks like because I made additional purchases on that second day it uses that for cost basis (Same day pool) until all the tokens for that day are sold, then it switches to selling from the s104 pool. Just looks very odd seeing loss when profit was clearly made on the sale overall.