bitshares / bitshares-ui

Fully featured Graphical User Interface / Reference Wallet for the BitShares Blockchain
https://wallet.bitshares.org
MIT License
517 stars 570 forks source link

Feature: Warn on settling assets with larger amounts in queue #3179

Open startailcoon opened 4 years ago

startailcoon commented 4 years ago

When a user wish to settle an asset they can't settle more than the allowed maximum per period. bitUSD, bitEUR, bitCNY and bitRUBLE all have 0.5% of total supply.

If a user tries to settle more than the maximum allowed amount it will sit in queue and settle the max amount until the order is fully completed. This means that any order submitted after this will be delayed accordingly.

If max amount to settle is 1000 per hour, and a user submitted an order of 24000, a user that submits any order after that will have to wait the required delay time + 24 hour, for the first users settle to finish.

Suggestion

Whenever someone uses the Settlement option we should display if there is any additional waiting time due to current large settlements.

Parameters to take into consideration are

sschiessl-bcp commented 4 years ago

The estimate is already being displayed iirc. You got screens?

startailcoon commented 4 years ago

It's not accurate

bitEUR today has for example has several large orders in queue. If I settle today, I will be delayed with several days because of these orders.

Current market status

image

PRICE bitEUR BTS EXPIRATION ESTIMATED SETTLE TIME
75.8431 188.8776 14,323.63608 12/31 05:12:51 Instant
75.8431 234.7468 17,802.15195 12/31 17:58:06 210 instant + remaining 18:00
75.8431 100.0000 7,583.55468 12/31 17:59:27 Instant
 75.8431 1,000.0000 75,835.54687 12/31 18:27:18 210 instant + remaining next 4 hrs
 75.8431 286.6240 21,736.28778 12/31 21:13:09 Delayed ~2 hr
 75.8431 5,051.5635 383,088.08058 01/1 01:31:42 210 instant + remaining next 23 hrs
 75.8431 616.4820 46,751.24960 01/1 02:47:36 Delayed ~24 hrs
 75.8431 66.0741 5,010.76550 01/1 03:06:18 Delayed ~27 hrs
 75.8431 27.0000 2,047.55975 01/1 03:12:36 Delayed ~28 hrs
 75.8431 1,200.0000 91,002.65625 01/1 05:28:54 Delayed ~28 hrs + remaining next 6 hrs

If I try to settle today I see this, when in fact I will not be able to get any settle orders through before 2nd of January around 16:00.

Estimated delay should be ~56 hours.

image