divaprotocol / diva-monorepo

Diva Monorepo
https://diva.finance
4 stars 4 forks source link

[Bug] Fractional numbers not possible Create Pool/Offer #687

Closed Walodja1987 closed 1 year ago

Walodja1987 commented 1 year ago

Context

Some input fields in Create Pool/Offer require fractional numbers to be entered with a comma (e.g., 0,34) and others work with a dot (0.34). For instance, the app does currently not allow to enter fractional numbers using a dot for the following fields (with comma it works though):

For Floor/Inflection/Cap, it works with a dot if payoff type = Custom though.

Can we have it such that both (comman and dot) are allowed? Example fields that already work like that are Gradient and Maximum Pool Capacity.

Walodja1987 commented 1 year ago

Done in #694