KomodoPlatform / atomicDEX

This is the official AtomicDEX mobile (smartphone app) repository
https://atomicdex.io
GNU General Public License v2.0
10 stars 15 forks source link

Wrong sorting of orders #126

Closed teedan closed 4 years ago

teedan commented 4 years ago

Usually, the orders in atomicDEX are sorted by descending price, meaning the best offer is right at the top. However, in some circumstances (not reproducable, but see attached screenshot), a worse price is listed at the top, breaking a proper sorting by descending price.

This is dangerous since some users will always pick the top offering assuming it's always the best offering they can get, and they might get financially wrecked by a totally unrealistic price.

order_sorting

teedan commented 4 years ago

Here's another example. Notice the descending price sorting with the exeption of the top entry: wrong_sorting2

teedan commented 4 years ago

Looks like the price "0.01" is causing a sorting problem, as can be seen in both examples?

SirSevenG commented 4 years ago

Much thanks for report, reproduced.

tonymorony commented 4 years ago

This one was fixed in 0.2.14