Skip to content
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

Staking accepts assets/symbols with wrong precision #224

Open
afalaleev opened this issue Sep 2, 2019 · 0 comments
Open

Staking accepts assets/symbols with wrong precision #224

afalaleev opened this issue Sep 2, 2019 · 0 comments
Labels
bug Something isn't working Medium

Comments

@afalaleev
Copy link

afalaleev commented Sep 2, 2019

Currently, there is possible to pass token with wrong precision to delegatevote.
https://explorer.cyberway.io/trx/89d4a3d82db9a0d872259a5c4827acfb2354c5f1bff45ed0220875bb641fc309

Transaction id:
89d4a3d82db9a0d872259a5c4827acfb2354c5f1bff45ed0220875bb641fc309
Block id:
0004af9e7b8db130cd19117e94055030a83003cce4f200d8e461de027d7d12b8
Block: #307102
Block time: 8/26/2019, 9:36:06 PM
Transaction status: executed
Actions count: 1
Statistics:
{ "cpu_usage_us": 3265, "net_usage_words": 16, "ram_kbytes": 1, "storage_kbytes": 0 }
Index: 1
Action: cyber.stake :: delegatevote
Receiver: cyber.stake
Authorization: bkfwx52fllr4@active
Arguments:
{
  "grantor_name": "bkfwx52fllr4",
  "recipient_name": "brx1i1bbvwgj",
  "quantity": "0.00001 CYBER"
}

The following quantities are the same for cyber.stake:

  • 0.1 CYBER
  • 0.01 CYBER
  • 0.001 CYBER
  • and so on
@afalaleev afalaleev added bug Something isn't working Medium labels Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Medium
Projects
None yet
Development

No branches or pull requests

1 participant