full member
Activity: 476
Merit: 133
until just now, barterDEX was limited to trading coins that LP nodes run. Now, they are running over 50 coins, but soon they will reach their limit.
For coins that the LP nodes are running, the orderbook info can prune out spent utxos to minimize network traffic. But decoupling the supported coins from LPnodes allows any two nodes to atomically swap a pair of coins and the only requirement is that both of them are running the pair of coins. Since each client node is running both coins, it can prune the spent utxo and this allows support for coins not on LP nodes.
For a coin to be supported by barterDEX it only has to support bitcoin RPC and have the following JSON object defined in the coins file:
{"coin":"LTC", "name":"litecoin", "rpcport":9332, "pubtype":48, "p2shtype":5, "wiftype":176, "txfee":100000 }
barterDEX is implemented in a coin agnostic way, which means you can make any coin as the destination coin. However, KMD is the default coin that the LP nodes will be making markets in, so we expect KMD trading pairs to have the highest volumes. But regardless of which trading pairs are the most popular, the DEX asset will be collecting the dexfees.
And siu who is actively testing barterDEX just got a GAME/KMD swap going!
{"base":"GAME","rel":"KMD","address":"Gbonb6izDTeterrkiEpy9UwDtaArYywZoW","timestamp":1499626843,"txid":"869f50344dea081b07e0941ca64c7d338488f4758f304cf256d7eb39f0733d30","vout":1,"srchash":"01f732c79cd0caaf061b8f7e9bfc84575e1315550872fed8f14e89ca03c89666","txfee":"10000","satoshis":"2952367","desthash":"ca66efb69017654b4634ac0ea6c4829813cbfd6885d9bfddca9eb9d748e0c978","txid2":"e5f7d20a508045166850a5c3bdf70cbf0aa0eb2a3fd5b279235fdb31598bcf61","vout2":1,"destaddr":"RRVgVs2e5sGeXbHQHMtsKpr2m6dSw48UGu","desttxid":"d04e5f4e54c295e085f5426ce49fcff52ca1aa057dcd0aa1f149e4255142a949","destvout":0,"feetxid":"284c7ef41aa9d9312c9a2e0412653c26a072a866aa0051f4277811d391b5583c","feevout":0,"desttxfee":"10000","destsatoshis":"4989999","price":1.69016894,"status":"connected","quotedprice":1.68783915,"maxprice":1.69100000,"requestid":3270703868,"quoteid":751738852}
This is notable as none of the LP nodes is running GAME at the moment, but two client nodes were able to establish an orderbook and start a trade. still a few issues with non-LP coins, but very close to working.