-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Delegation is limited to int #2319
Comments
It is intended that you are not permitted to stake fractions of any token, all tokens used are intended to represent the smallest denomination of that token (aka the units we should actually be using are the equivalent of "a satoshi")... So this is in fact not a bug but the intended functionality. There have been some discussions of allowing for multiple units of the same token to be submitted through the API - however this is a post-launch concern. |
That scenario should never come up as validator’s (soon) will be holding whole atoms not fractions of atoms. Even slashing events will only take place on full atoms… I guess there is the situation in which after a slashing event your shares become worth a fraction of an atoms - those atoms should probably just be slashed I guess or just left in the pool for the other delegators maybe… I’ll open an issue for this, interesting edge case. #2327 BUT either way - this edge case is independent to your issue as |
thx
Do we have sub-atoms already? Undelegation still returns atoms, am I mistaken? |
it's just the name of the denom - but yet we should probably rename the denom in gaia ASAP just to get the testnets looking more like the hub. Everything should be using |
How do you exchange sub-atoms for atoms? Or are there just no atoms anymore? |
iirc, atoms are just another way to represent a quantity of whole atoms. e.g. 1000000000 wei == 1 ETH. |
@alexanderbez is correct - An atom is just a concept representing 100000000 sub-atoms. Sub-atom is the only unit used in the SDK. To determine the amount of "atoms" you have you just perform a calculation in the UI or on a Napkin in the Joe's Dinner |
Summary of Bug
I can have only a fraction of shares in a validator. But I can not stake fractions of atoms.
If I
POST /stake/delegators/cosmosaccaddr1xlkl78w5cs5rd0tqxjla2pqqd82v57yj70r0d3/delegations
the body:The LCD returns the error:
Steps to Reproduce
GET /stake/delegators/cosmosaccaddr1xlkl78w5cs5rd0tqxjla2pqqd82v57yj70r0d3
Try to undelegate the shows shares:
POST /stake/delegators/cosmosaccaddr1xlkl78w5cs5rd0tqxjla2pqqd82v57yj70r0d3/delegations
Error:
For Admin Use
The text was updated successfully, but these errors were encountered: