-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable all transfer buttons if amount is not int #1594
Comments
how is it not possible to use decimals if the total value is in decimals? |
thank you for asking @jbibla, I find it also very weird I think we discussed this before but let's pull in @cwgoes and @rigelrozanski for clarification |
🤷♂️ |
Will report this to the All in Hands |
Gaia does not support decimal/fractional tokens; all token amounts are positive integers. As far as I know it has never done so. I don't know what Voyager did previously or what might have changed recently. Likely we will have some "unit denomination" which should be visualized to the user (so all amounts should be divided by |
Validator Tokens are in SDK.Dec and Shares are in SDK.Dec. Calculating tokens from shares will probably produce a decimal. So summing up: Correct? |
Sounds good to me. |
Thank you @cwgoes for your patience :) |
@faboweb "undelegate full tokens" <- this means nano-atoms though! not full atoms! - the base unit for a "whole token" is a nano-atom... it is nano-atoms which can be undelegated lol |
Thank you @rigelrozanski for following up and clarifying. :) We came to the same solution yesterday with Chris. Let's increase the amount of tokens on the next testnet to x * 10^18 to be more representative of the actual values. We will do the same on our local testnet setups. |
Description:
On the newest version I'm getting the following error if I try to delegate/deposit/send an amount with decimals
math/big: cannot unmarshal "1.2" into a *big.Int
The text was updated successfully, but these errors were encountered: