question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Variable min deposit size to promote consistent # of vals

See original GitHub issue

Issue

Defining an explicit, unchanging value for the minimum size of deposits is risky because we do not have a clear idea as to how many validators will show up. Instead, we want to define a base deposit value and have the minimum a validator needs to deposit scale as the number of validators scales.

Proposed Implementation

  • Track number of active validators with a new contract variable num_validators set to 0 at contract creation
  • When validator sends deposit assert msg.value >= max(self.min_deposit_size, num_validators)
  • Increment num_validators when a new validator sends a deposit
  • Decrement num_validators when a validator submits a logout or is slashed (if they haven’t logged out already)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
djrtwocommented, Apr 19, 2018

I exposed the method current_min_deposit_size as a public method in the PR. This should probably suffice, right?

https://github.com/ethereum/casper/pull/98/files#diff-5907966b02ce3d72c8259ba4206c1338R302

1reaction
ChihChengLiangcommented, Apr 20, 2018

PR is welcome, remember to fix this comment in the PR too. That comment only makes sense in the dynamic min deposit size context.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Recommended Approach for Setting Regulatory Risk-Based ...
Variable Annuity Guaranteed Living Benefit (VAGLB) – A VAGLB is a guaranteed benefit providing, or resulting in the provision that, one or more...
Read more >
Left ventricular mass normalization for body size in children ...
A normalized LVM can be presented as a standardized value (z-score) or visualized on a centile chart. It is considered that the centile...
Read more >
FDIC Community Banking Study
The FDIC Community Banking Study is a data-driven effort to identify and explore issues and questions about community banks.
Read more >
STATUTE-105-Pg2236.pdf - GovInfo
Section 14(a) of the Federal Deposit Insurance Act (12 U.S.C. ... "(B) any increase in total assets is consistent with the plan; and....
Read more >
Financial Soundness Indicators: Compilation Guide
Specification of Financial Soundness Indicators for Deposit Takers. ... volume and the market price is listed at regular inter- vals.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found