Closed imabdulbasit closed 2 years ago
yeah which is why its hard to solve because of the order in which indexer gets it. I am thinking about we should check the purchases table before indexing offer. This would solve the problem when offer is received after purchase instruction. Same goes for listing
Either the offer or the listing is going to be created in the same transaction as the execute_sale. In the case of buy now the offer will be created in the instruction before buy now and for accept offer the listing.