Was I used horribly by my ex?

So he recently broke up with me for something bad I did to him which I deeply regret. But we still talked after the break up. Two weeks ago, we decided to make a bet that he wouldn't come up to see me. At first the bet was for $100 but then he doubled it to $200. I know I shouldn't have made a bet with him but I really wanted to see him, felt guilty about what I did and felt like him seeing me would maybe change his mind about us. Needless to say he came up and I had to pay up. We ended up having sex and I paid for dinner.

Now I feel like I was used badly and I feel like a fool even though he says he's still in love with me. He just needs time. Was I used horribly? Was this some kind of revenge?

TLDR: we've been friends for a very long time. Almost 10 years and I know he loves me. So maybe I'm wrong.
Updates
+1 y
Don't answer this question. I realize how silly it sounds and deleting it.
Was I used horribly by my ex?
Post Opinion