Polkadex-Substrate / Polkadex-Open-Beta

12 stars 3 forks source link

Orderbook does not aggregate orders. #591

Open nashidahmed opened 8 months ago

nashidahmed commented 8 months ago

By raising this issue, I agree to the terms and conditions presented by Polkadex here: Terms and Conditions

Description

The orderbook does not correctly aggregate the orders when the user changes the tick size. It just removes a decimal place from the orders instead.

Steps to reproduce:

Change the tick size from the default 0.001 to 0.01. The orderbook should aggregate orders of the same price. Instead, it simply drops a decimal place from the orders.

Similar issue issue if you change it to other tick sizes.

Screenshots

default order book

orderbook when tick size changed to 0.01

orderbook when tick size changed to 0.1

onchainaddress:{esoia6ocj8jC4Wq2mSeiCsXf1Z3eHqx7oHQ8hK8iPgHUYAmeC}

jaymansfield commented 8 months ago

350