-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add Economic Model #1716
Add Economic Model #1716
Conversation
Great to see this moving forwarding, great insights @vang1ong7ang. It is a continuous election, right? Thus, as soon as NEO is transferred it is interested that the new owner should vote for some Validators in order to maximize his rewards, right? |
// Keep track of incremental gains of committee voters | ||
|
||
UInt160 committeeAddr = Contract.CreateSignatureContract(committeeVotes[i].Item1).ScriptHash; | ||
BigInteger voterRewardPerCommittee = (i < validatorNumber ? 2 : 1) * voterRewardPerBlock * 10000L / committeeVotes[i].Item2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it distributed equally or the number of votes of each committee will affect? If true maybe we need to update description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The number of votes of each committee will affect, I'll update description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good, @Tommo-L,
What I am thinking, @vang1ong7ang, is that voters
will change vote quick in order to maximize their gains, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are considering a multiplier 2
if you vote for CN instead of non-CN in the Committee.
If you vote for someone out of the Committee then you will soon change as well, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you update the description, @Tommo-L ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are considering a multiplier 2 if you vote for CN instead of non-CN in the Committee.
Yes
If you vote for someone out of the Committee then you will soon change as well, right?
Yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you update the description, @Tommo-L ?
Done.
Yes, it's a continuous election. If NEO transferred, I think in most cases, there is no need to re-vote because the interest gap will not be too large. |
…nto add_economic_model
@Tommo-L conflicts |
// Keep track of incremental gains for each committee's voters | ||
|
||
UInt160 committeeAddr = Contract.CreateSignatureContract(committeeVotes[i].Item1).ScriptHash; | ||
if (committeeVotes[i].Item2 > 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StandbyCommittee
will initially have no votes. I'm not sure if it is ok. (After confirmed, I will fix UT)
@Tommo-L Conflicts. |
@Tommo-L Can you combine |
ok, I'll combine them. |
Done |
@Tommo-L The code looks good. Can you divide this PR into 3, and then I will review them one by one. |
Ok, I'll split it. |
Close #1617 Close #285
The additional GAS allocation is as follows:
The implementation method was originally proposed by @vang1ong7ang and optimized by @Tommo-L @erikzhang
How to test and verify the impact of these changes?
Case 1: claim GAS for neo holders, committee and voters.
Case 2: claim GAS for users across different committee cycles.
Where in the software does this update applies to?