Do not allow short lockups to vote on proposals for longer liquidity deployment #175
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
If users want to vote for proposals with longer liquidity deployment duration, then their lockups must have at least some voting power in round that precedes the round in which the liquidity will be returned. For example, if there is a proposal in round 1 requesting liquidity to be deployed with them for 3 rounds, then users can vote for such proposal only with lockups that are ending in round 4 or later.
Changes had to be made in vote() and lock_tokens() functions because of the "automatic" voting that happens when user locks more tokens, if user already voted for some proposal in current round.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
.changelog
make compile
and included content of the artifacts directory into the PRmake schema
and included generated files into the PR