Wait.. Sorry I'm not exactly the best with this lol but thanks for trying to explain it
Maybe I could ask the question in another way
Let's say I have 1 Bitcoin.
I then send 0.1 Bitcoin to 1swag
1swag returns 0.2 Bitcoin to me and then does something (double spends?) that doesn't allow it to confirm
I send the 1.1 BTC I have to 1Lol
The 1Lol and the transaction I received are both unconfirmed, but the one I sent confirmed.
What happens to the unconfirmed BTC?
1 0.1 0
--- you send .1 to swag (tx1)
0.9(u) 0.1 0
0.1(u)
--- swag send 0.2 to you (tx2)
0.9(u) 0 0
0.2(u)
--- you send 1.1 to someone else (tx3)
0 0 1.1(u)
0
--- swag also sends 0.2 to alice (tx4)
you swag else alice
0 0 1.1(u,c) 0.2(u,c)
tx2 can only confirm if tx1 is confirmed and tx3 can only confirm if tx1 and tx2 are confirmed.
tx4 can only confirm if tx1 is confirmed.
If tx4 confirms, tx2 and tx3 are invalid, they never happened (you still have 0.9 btc).
If tx3 confirms, tx4 is invalid.