Polkadex-Substrate / Polkadex-Open-Beta

12 stars 3 forks source link

Market order / Limit order failing - problem with number of decimals #324

Open Targan23 opened 2 years ago

Targan23 commented 2 years ago

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

Description

I think the problem is actually with the number formatting because when i put round numbers (like 32 not 32.5454321) it works. See the print screens at the end

If i try to sell my PDEX via Market order it fails: See the print screen.

Error: "errorMessage":"{\"code\":-32000,\"message\":\"Error in receiving oneshot channel: QtyStepErr(\\"0.001\\")\"}","errorType":"Lambda:Handled"}

10/1/2022, 1:20:26 PM

image

I have enough PDEX.

image

When i put in round numbers it works:

Screenshot 2022-10-01 132836

image

onchainaddress:{esouQaHBfnppyHJT7kjmk7BhtL3f9HFgNpnHCqqSpYKcGKwb3}

nuel77 commented 2 years ago

fixed in https://github.com/Polkadex-Substrate/Polkadex-Orderbook-Frontend/pull/360