Some of you might have worried about the number of simultaneous atomic swaps. We are testing multiple swaps at the same time and so far, looking good:
cipi [4:23 AM]
parallel MNZ/KMD swap done... 2 alices bought from one bob at the same time
cipi [4:23 AM]
SWAP completed! 3219815817-3808262204 {"requestid":3219815817,"quoteid":3808262204,"iambob":1,"bob":"MNZ","srcamount":0.41694812,"bobtxfee":0.00010000,"alice":"KMD","destamount":0.06738388,"alicetxfee":0.00010000,"sentflags":["alicespend", "bobspend", "bobpayment", "alicepayment", "bobdeposit", "bobrefund"],"values":[0.41684812, 0.06738388, 0.41694812, 0.06748388, 0.46906663, 0, 0, 0.46896663, 0, 0, 0],"result":"success","status":"finished","bobdeposit":"90fd05403b11855742b60476b687c6f5c40c14c4365f0f5975d6aec8f188b342","alicepayment":"43e0014ef3c3c2c44a61567485350feee882b0d46c79f2c4307f974ed614e832","bobpayment":"f96a2a985486748f13e04be3967d7dcc32506f862ca3795341200c30d8168e07","paymentspent":"e45f78bf4d861dd46250a607d9410279b16e47d9919631c9fd6491406db19857","Apaymentspent":"dc13c9cc291ddf620a9d6aab257c8a6ef1d67113b3f364a96e5f4f6b45890e92","depositspent":"da65fec842bfaabfc8ff44cc25f8f2bb1fb4700216b582028b56e2678d7a981b"}
SWAP completed! 2404694432-4114396514 {"requestid":2404694432,"quoteid":4114396514,"iambob":1,"bob":"MNZ","srcamount":0.35061014,"bobtxfee":0.00010000,"alice":"KMD","destamount":0.05663104,"alicetxfee":0.00010000,"sentflags":["alicespend", "bobspend", "bobpayment", "alicepayment", "bobdeposit", "bobrefund"],"values":[0.35051014, 0.05663104, 0.35061014, 0.05673104, 0.39443640, 0, 0, 0.39433640, 0, 0, 0],"result":"success","status":"finished","bobdeposit":"354b72cd2932392e587c0f20d4e3d2ee839507f18ba2a899cb90e7f021b6f77c","alicepayment":"c9975a904f230d40121a323c023be986f74ecda0f12d5452bd0434dd60aae09d","bobpayment":"63e66ff261f2ab089094e903def3c307f496c05cec8963a6050495fa2ef9ad7e","paymentspent":"859408e8f6ea336dbb4eae0c8d6377d055797f577bba577276f0fe1400045c27","Apaymentspent":"b591cd3194d5b3053ea96971749763f7ad9be60744d60c27b0e5b3aaa9d9d157","depositspent":"f650b603000d3892552301b4fd784c1ef55141fa6ffff4748e720c2f23dba7da"}
blackjok3r [4:52 AM]
awesome work guys.
cipi [4:56 AM]
3 parallel swaps are also working and cpu is down to only 5%... must have been the weather or so... will continue tommorow with more clients and more swaps
#######
Theoretically, N-1 swaps can happen at once on one LP node where N is the number of utxos, but probably there will be some issues as we get closer and closer to N. Still everything is designed so that if a swap doesnt work, just do another one, so it would just be a bit annoying.
In recent weeks, I reduced the number of deposit utxos needed by the bob side to 1 per ongoing swap. Before it was 1 for each payment utxo available and would have make half the funds allocated to deposits. With the liquidity multiplier, it wouldnt have matter that much, but still it wasnt efficient.
Now both bob and alice side can get 99%+ of their funds active with proper utxo creation and with the liquidity multiplier there can really be a lot more effective trading volumes.