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

Migrations: different CLabs groups gets different votes #1960

Merged
merged 4 commits into from
Nov 29, 2019

Conversation

timmoreton
Copy link
Contributor

Description

Implements a sliding scale of voting LockedGold for CLabs groups in migrations.

A new parameter, votesRatioOfLastVsFirstGroup, >=1 determines the ratio of the votes in the last group vs the first. The first will be set as the minimum LockedGold required to stake (plus a small margin), and then each group will receive successively more from there, pro rata based on number of validators.

Tested

Observed correct behavior in e2e tests.

Backwards compatibility

Yes

Copy link
Contributor

@mcortesi mcortesi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@codecov
Copy link

codecov bot commented Nov 29, 2019

Codecov Report

Merging #1960 into master will decrease coverage by 0.25%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1960      +/-   ##
=========================================
- Coverage   74.45%   74.2%   -0.26%     
=========================================
  Files         281     278       -3     
  Lines        7817    7675     -142     
  Branches      685     674      -11     
=========================================
- Hits         5820    5695     -125     
+ Misses       1880    1863      -17     
  Partials      117     117
Flag Coverage Δ
#mobile 74.2% <ø> (-0.26%) ⬇️
Impacted Files Coverage Δ
packages/mobile/src/redux/selectors.ts 76% <0%> (-2.58%) ⬇️
packages/mobile/src/home/NotificationBox.tsx 75% <0%> (-1.67%) ⬇️
packages/mobile/src/account/actions.ts 91.66% <0%> (-0.44%) ⬇️
packages/mobile/src/web3/saga.ts 38.77% <0%> (-0.12%) ⬇️
packages/mobile/src/firebase/actions.ts 100% <0%> (ø) ⬆️
packages/mobile/src/account/types.ts 100% <0%> (ø) ⬆️
packages/mobile/src/invite/saga.ts 72.61% <0%> (ø) ⬆️
packages/mobile/src/web3/actions.ts 76.47% <0%> (ø) ⬆️
packages/mobile/src/navigator/Screens.tsx 100% <0%> (ø) ⬆️
packages/mobile/src/web3/reducer.ts 47.05% <0%> (ø) ⬆️
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c897cd6...db59b17. Read the comment docs.

@timmoreton timmoreton merged commit 535811a into master Nov 29, 2019
@timmoreton timmoreton deleted the timmoreton/varying-votes branch November 29, 2019 21:31
aaronmgdr added a commit that referenced this pull request Dec 4, 2019
* master: (120 commits)
  Update docker image and instructions (#2000)
  DOCS correct typos (#1965)
  Add a space on payment request (#1935)
  expose signer through getValidator (#1997)
  Fix validator election migration bug with sorted list insertion (#1998)
  Deploy an oracle cronjob (#1814)
  Set default env in attestation service docker image as production (#1999)
  Attestation Bot POC (#1851)
  Only allow external RPCs for tx nodes (#1994)
  Specify web deps properly (#1950)
  Fix error calculating fees on currencies with high exchange rate (#1937)
  Small pre-stake-off CLI cleanup (#1953)
  Migrations: different CLabs groups gets different votes (#1960)
  [Wallet] Fix broken translation (decline, pay) (#1968)
  [Wallet]: Add Payments You've Requested notifications group & screen (#1902)
  [Wallet] Fix iOS bundle script failing with our monorepo setup (#1958)
  [NotificationService] Change exchange rate stored format (number timestamp and pair) (#1945)
  [Wallet] Fix premature hiding of syncing banner and increase some timeouts (#1957)
  Avoid `liner: function not supported in this terminal` (#1955)
  Support more human readable log output (#1929)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants