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

Should smart-contracts be allowed to vote? #2230

Closed
lock9 opened this issue Jan 14, 2021 · 6 comments
Closed

Should smart-contracts be allowed to vote? #2230

lock9 opened this issue Jan 14, 2021 · 6 comments
Labels
question Used in questions

Comments

@lock9
Copy link
Contributor

lock9 commented Jan 14, 2021

I want to propose a discussion: should smart-contracts with Neo be allowed to vote? (and claim gas)
What is your opinion? Why?

My opinion:

Pros: Neo will be moved around, good for dapps and the general market.
Cons: Smart-contracts(admins) becoming too 'powerful'; dapps voting for their own candidates, without user permission.

If we create a NEP for voting delegation, then ok, I'm in favor. This is because I believe that the more assets moving around, the better. I'm not really sure. I would like to know your opinions.

@lock9 lock9 added the question Used in questions label Jan 14, 2021
@roman-khimov
Copy link
Contributor

They can do that already (and we use that in NeoFS internal chain contracts), see #1924.

@dahongfei
Copy link
Contributor

I am leaning towards not to change current design - allow SC to vote and collect GAS. Deactivate NEO's voting capacity in SC limits the flexibility of SC, i.e a voting strategy SC.

@ioannistsil
Copy link

I am leaning towards not to change current design - allow SC to vote and collect GAS. Deactivate NEO's voting capacity in SC limits the flexibility of SC, i.e a voting strategy SC.

i think this will have negative impact for gas value

@lock9
Copy link
Contributor Author

lock9 commented Jan 14, 2021

@roman-khimov how do you split votes? Isn't the smart-contract considered only one account? Are these contracts open-source?
@dahongfei Agreed. We don't happen to have a voting strategy SC example, do we? I would like to learn more about this.
@ioannistsil why do you say that?

@roman-khimov
Copy link
Contributor

how do you split votes?

That's a very good question, one account only votes for one candidate now, so to make it all work we deploy several (depending on number of CNs needed) contracts (technically, it's even the same NEF now, #2044 allowed us to deploy it using different senders) that hold NEO, vote with it and receive GAS.

Are these contracts open-source?

Sure, https://github.com/nspcc-dev/neofs-contract, the one you're interested in is alphabet.

@lock9
Copy link
Contributor Author

lock9 commented Jan 15, 2021

I will leave this open for another day, but the results were great. I know where to go. Suggestions on #2233 are welcome! Thanks.

@lock9 lock9 closed this as completed Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Used in questions
Projects
None yet
Development

No branches or pull requests

4 participants