DeXter-on-Radix / website

Community built order book dex on Radix.
https://dexteronradix.com/
Other
14 stars 21 forks source link

Implement decimals depending on coins #371

Open dcts opened 6 months ago

dcts commented 6 months ago

We currently calculate the rounding precision for frontend based on a hardcoded function, see here: https://github.com/DeXter-on-Radix/website/blob/main/src/app/utils.ts#L356-L376

Ideally we should compute the decimals dynamically so when we add new coins the coins will be shown in a nice format.

EvgeniiaVak commented 6 months ago

@fliebenberg could you point what SDK properties can we use here if any? I've seen these properties in the docs:

Screenshot 2024-05-06 at 16 41 31

But I guess precision is not the same as the number of decimals allowed.