Open dcts opened 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.
@fliebenberg could you point what SDK properties can we use here if any? I've seen these properties in the docs:
But I guess precision is not the same as the number of decimals allowed.
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.