I think there is a problem about the market engine
I have try to attack just, but I don't know why the block stop at 5829.
So I write the attack plane here.
this is the order book
test (unlocked) >>> blockchain_market_order_book USD XTS
BIDS (* Short Order) | ASKS
TOTAL QUANTITY PRICE | PRICE QUANTITY TOTAL COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
480.5408 USD 41,968.63253 XTS 0.011450000000 USD*| 0.011627906977 USD 391.03910 XTS 4.5469 USD
4.1599 USD 363.95450 XTS 0.011430000000 USD*| 0.100000000000 USD 100,000.00000 XTS 10,000.0000 USD
22.8284 USD 2,002.49362 XTS 0.011400000000 USD*|
499.9999 USD 44,326.24113 XTS 0.011280000000 USD*|
9,798.9999 USD 881,910.00000 XTS 0.011111111111 USD*|
10.0000 USD 990.00000 XTS 0.010101010101 USD |
10.0000 USD 1,000.00000 XTS 0.010000000000 USD*|
9,999.9999 USD 1,200,000.00000 XTS 0.008333333333 USD*|
10,000.0000 USD 2,000,000.00000 XTS 0.005000000000 USD*|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| MARGIN
| CALL PRICE QUANTITY TOTAL COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| 0.008607000000 USD 130,707.56361 XTS 999.9999 USD 174,276.75148 XTS
| 0.008606250000 USD 240,130.71894 XTS 1,836.9998 USD 320,174.29192 XTS
| 0.008606250000 USD 1,307,189.54247 XTS 9,999.9999 USD 1,742,919.38996 XTS
| 0.008587500000 USD 69,361.46167 XTS 529.4589 USD 92,481.94890 XTS
| 0.008571428476 USD 1,050,000.00000 XTS 8,999.9999 USD 1,400,000.00000 XTS
| 0.008571428476 USD 1,050,000.00000 XTS 8,999.9999 USD 1,400,000.00000 XTS
| 0.008426966292 USD 1,335,000.00000 XTS 9,999.9999 USD 1,780,000.00000 XTS
| 0.008389261745 USD 134,100.00000 XTS 999.9999 USD 178,800.00000 XTS
| 0.008333333333 USD 135.00000 XTS 0.9999 USD 180.00000 XTS
| 0.008333333333 USD 27,135.00000 XTS 200.9997 USD 36,180.00000 XTS
| 0.008241758242 USD 13,650.00000 XTS 99.9999 USD 18,200.00000 XTS
| 0.003787863636 USD 13,200.00000 XTS 49.9998 USD 17,600.00000 XTS
Average Price in Recent Trades: 0.01127583837707659 USD / XTS Maximum Short Price: 0.01503445116943545 USD / XTS Minimum Cover Price: 0.00751722558471772 USD / XTS
Bid Depth: 4,171,571.32178 XTS Ask Depth: 7,261,203.42137 XTS Min Depth: 2,000,000.00000 XTS
you see, when the trade price is 0.0083, many margin call will happen. and the minimum cover price is 0.0075.
so I will sell my XTS at price more than 0.0083, and I'll give a bid order at price 0.0075, buy all the XTS at price 0.0075.
ask baozi 89110 XTS 0.01128 USD
# wait a block
ask baozi 881910 XTS 0.01111111 USD
# wait a block
ask baozi 1990 XTS 0.01 USD
# wait a block
ask baozi 1200000 XTS 0.00833333 USD
bid baozi 2767225 XTS 0.007518 USD
from the attack, I spent 2173010 XTS, and I can get 2173010.
In fact, I can make a short order at price 0.007518, to get all cover order at the low price.