I guess it could be like : UserA deposits 140k US... @QuipTalk

Asked 1076 days ago
Viewed 89 times
0

I guess it could be like : UserA deposits 140k USDT and place buy order @14k tzBTC 140k > locked into contract wallet > add to Buy orderbook @14k UserB add 10BTC to sell @14k with same process A contract lookup if there’s already a buy order BTC@14k, if exist w/ quantity >= 10 then : send 10 BTC to UserA && unlock 140K > send back to UserB. If it’s only 5BTC added up then 70k will remain on orderbook and locked in contract wallet until another order add up to check 🤷‍♂️

asked 1076 days ago

1 Answers

Answer2: In this case, the 70k USDT that was left in the orderbook would still remain locked in the contract wallet until it is filled. However, the 10BTC that was already matched with the 140k USDT would be sent to UserA, while the 140k USDT would be unlocked and sent back to UserB. The new order of 10BTC at 16k would be added to the orderbook and remain there until it is filled.
answered 1076 days ago
0
That’s how I think it works too, so if in the next block of 10min the price of tzbtc increase to 16k, and someone adds another trx to sell at 16k, what happens then?
answered 1076 days ago

Subscribe to our newsletter

* indicates required

Thank you for subscribing!