Vote - nostrum-coin/nostrum-coin GitHub Wiki

To vote it is necessary to call the doVote function, which has 6 parameters. The first parameter specifies the index in the list of possible values for the duration of the next election, the second how many Nostrum the vote will spend. The third defines the index in the list of possible values for the burn percentage, the fourth how many Nostrum the vote will spend. The fifth defines index in the list of possible values for the stake earning percentage, the sixth how many Nostrum the vote will spend.

The list of possible values for the duration of the next election, list of possible values for the burn percentage and list of possible values for the stake earning percentage can be defined as:

duration_next_election = [1 week, 4 weeks, 8 weeks, 26 weeks, 52 weeks] 
burn_percentage = [0%, 0.1%, 0.5%, 1.0%, 2.0%] 
staking_percentage = [0%, 1%, 3%, 5%, 10%] 

The first value of each list has an index equal to 1, the second has an index equal to 2, and so on. So to do a vote for:

next election = 8 weeks (spending 10 Nostrum)
burn percentage = 0% (spending 20 Nostrum)
staking percentage = 10% (spending 30 Nostrum)

It is necessary to make a call: doVote(3, 10, 1, 20, 5, 30). Since 8 weeks is the index 3 in duration_next_election list, 0% is the index 1 in burn_percentage list and 10% is the index 5 in staking_percentage list.