I don't know how to check pending tx in mempool from a smart contract but off-chain using ethers, you can look for tx statuses
May 5, 2021, 4:52 PM
but that would require a lot of conditional checking
your next best approach is to gather enough data in a data pool of tx along with the addresses and run logic around the data pool looking for such bad behaviour
May 5, 2021, 4:53 PM