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

Turnout information is not properly stored on-chain #134

Open
elboletaire opened this issue Jun 4, 2024 · 0 comments
Open

Turnout information is not properly stored on-chain #134

elboletaire opened this issue Jun 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@elboletaire
Copy link
Member

elboletaire commented Jun 4, 2024

Turnout is set as an int in the contract, but it usually is a float number below 1, so it's being stored as zero in most cases. See this case for example:

https://explorer.degen.tips:443/address/0x1a7361b9d75486C5c10e7B3Ec77266BA75260bF1?tab=read_contract#13e86265

Community id: 17
Election id: 0x4ae20a8eb4caa52f5588f7bb9f3c6d6b7cf003a5b03f4589edea1000000002c6

Turnout should be 0.433213 but it's being stored as 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant