pull down to refresh
100 sats \ 1 reply \ @ek OP 28 Sep \ parent \ on: Predyx | Advanced Prediction Markets with Lightning Network Integration oracle
Oh, interesting!
No worries, happy to share! The matchmaking is in this commit. I linked to the query that I think you'll be the most interested in.
The main problem with that code was that orders required a 1:1 match. So it wasn't possible to match orders partially. If you wanted to sell X shares, another user had to buy all of them at once, it couldn't be multiple users with smaller orders. I wanted to add that later.
Oh, so that's what these active orders are about. I must admit, I did try to see if and how you handled this problem. You have to trust me that I would have reported it if I saw some way for infinite arbitrage 👀
Just checked your SQL query, very complex 🤓 and you wrote everything in GO, that's really dope. I will explore your code in more details. Thank you sharing! Very helpful. We will definitely need independent order match at some point of time if we grow big. So we better start thinking about it now.
Yes please do report any infinite arbitrage, I would very much expect that from you :) BTW if you or anyone lost sats due to "Active Orders" issue, please me know. Happy to refund it.
reply