AxLabs / grantshares-contracts

GrantShares: Smart Contracts 🌱
Apache License 2.0
5 stars 2 forks source link

Allow the treasury to vote with NEO #14

Closed csmuller closed 2 years ago

csmuller commented 2 years ago

The NEO held in the treasury could be used for voting and, thus, for higher GAS rewards than just from holding it. Implement functionality that handles NEO specifically. Maybe like this:

gsmachado commented 2 years ago

That's a cool idea. 👍 🥇

gsmachado commented 2 years ago

Isn't this implemented?

csmuller commented 2 years ago

Yes, you're right. We added a method - which anyone can call - that votes on the committee member with the least votes. Downside is, that method has O(n^2) and will be expensive if we have many more candidates in the future.