...
There are several tables that contain vote weights.
eosio > producers
total_votes
Total votes (proxied and direct) for the producer
Data validation task:
Confirm total_votes
values are correct. I would like to do this by looking at the individual balances for all voters in the voters table. Do NOT use the eosio > voters > last_vote_weight
values as we are not certain if those are accurate. This needs to account for proxied votes, etc.
Output should be a table with:
producer account
total_votes
value from state tableCalculated total votes (from raw token balances of voters and proxies)
Example:
Code Block |
---|
{ "id": 0, "owner": "dacobcm2lnnc", "fio_address": "bp@thedac", "addresshash": "0x44ddade5cd4acba595ea2a42c23414b2", "total_votes": "351415064593433088.00000000000000000", "producer_public_key": "FIO8UxsfvX6QpjukrFqbaUMtT7WfeiXZRE26F4ATAwYjwZacUACNw", "is_active": 1, "url": "https://eosdac.io", "unpaid_blocks": 0, "last_claim_time": "2022-12-05T18:04:17.000", "last_bpclaim": 1670263457, "location": 10 } |
eosio > voters
last_vote_weight
The amount of unlocked FIO in the account
...
Code Block |
---|
{
"last_block_num": "2022-12-05T18:29:32.000",
"total_producer_votepay_share": "0.00000000000000000",
"revision": 0
} |
eosio > producers
total_votes
Total votes (proxied and direct) for the producer
Example:
Code Block |
---|
{
"id": 0,
"owner": "dacobcm2lnnc",
"fio_address": "bp@thedac",
"addresshash": "0x44ddade5cd4acba595ea2a42c23414b2",
"total_votes": "351415064593433088.00000000000000000",
"producer_public_key": "FIO8UxsfvX6QpjukrFqbaUMtT7WfeiXZRE26F4ATAwYjwZacUACNw",
"is_active": 1,
"url": "https://eosdac.io",
"unpaid_blocks": 0,
"last_claim_time": "2022-12-05T18:04:17.000",
"last_bpclaim": 1670263457,
"location": 10
} |
fio.treasury > voteshares
votes
Not sure what this is?
...