We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
Either something with the precision is wrong on the SDK or we're not calculating shares correctly.
The minimum allowed precision is a utoms (nano atoms or 1e-7 atoms).
utoms
1e-7 atoms
To Reproduce
Undelegate 5e-12 stake which translates to "shares_amount": "0.000050000000000000"
5e-12
"shares_amount": "0.000050000000000000"
Expected behavior
Not allow to undelegate less than 1 nano atom
Screenshots
Additional context
Transaction:
{ "height": "4184", "txhash": "90BC800E95C9C35BAD3F8180DD4A3B3F319C46AB2F17006E2676EBCAB48A3323", "data": "DAimgpnkBRDgof6tAQ==", "log": "[{\"msg_index\":\"0\",\"success\":true,\"log\":\"\"}]", "gas_wanted": "500000", "gas_used": "101024", "tags": [ { "key": "action", "value": "begin_unbonding" }, { "key": "delegator", "value": "cosmos1h0k4vl3kfjurxfemnlhr684px8u6q3anz2f8ct" }, { "key": "source-validator", "value": "cosmosvaloper1h0k4vl3kfjurxfemnlhr684px8u6q3an87aj5c" }, { "key": "end-time", "value": "2019-03-11T11:06:14Z" } ], "tx": { "type": "auth/StdTx", "value": { "msg": [ { "type": "cosmos-sdk/Undelegate", "value": { "delegator_addr": "cosmos1h0k4vl3kfjurxfemnlhr684px8u6q3anz2f8ct", "validator_addr": "cosmosvaloper1h0k4vl3kfjurxfemnlhr684px8u6q3an87aj5c", "shares_amount": "0.000050000000000000" } } ], "fee": { "amount": null, "gas": "500000" }, "signatures": [ { "pub_key": { "type": "tendermint/PubKeySecp256k1", "value": "Aiuxl8dL1b/EIFdy7+W4Q8acxbGmr/1OdIIYuqOdmV+A" }, "signature": "D/SjZSZi8+yBw4iO0hQ5uEfpeOe/5u3QRoGxlHNrE0VZFTeUeOvbhQKuHLnC5U6ma3K4FtdhL0RQMMVoRWo2Tw==" } ], "memo": "Sent via Cosmos UI 🚀" } } }
The text was updated successfully, but these errors were encountered:
the validator had delegator_shares: 99999999.999950000000000000
delegator_shares: 99999999.999950000000000000
Sorry, something went wrong.
faboweb
Successfully merging a pull request may close this issue.
Describe the bug
Either something with the precision is wrong on the SDK or we're not calculating shares correctly.
The minimum allowed precision is a
utoms
(nano atoms or1e-7 atoms
).To Reproduce
Undelegate
5e-12
stake which translates to"shares_amount": "0.000050000000000000"
Expected behavior
Not allow to undelegate less than 1 nano atom
Screenshots
Additional context
Transaction:
The text was updated successfully, but these errors were encountered: