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

Add Verifiers deposit in staking mediator and verifiers contracts #268

Open
npopeka opened this issue Jun 23, 2020 · 0 comments
Open

Add Verifiers deposit in staking mediator and verifiers contracts #268

npopeka opened this issue Jun 23, 2020 · 0 comments
Assignees

Comments

@npopeka
Copy link
Member

npopeka commented Jun 23, 2020

Change specification and add additional functionality to YALLVerification.sol and Staking mediator:
Changes to staking contract:

  • inherit new contracts from erc20-staking-contracts;
  • add mapping (address => uint256) VerifiersDeposits // verifier address => deposit amount;
  • add variable uint256 public MinVerifiersDepositAmount with setter with onlyGovernance modifier. This variable can be set only by governance voting;
  • add the addVerifierDeposit ( uint256 _deposit amount). Address with active stake can call this method and increase his vefiersDeposit ;
  • add the StakeandAddVerifierDeposit ( uint256 _deposit amount); Address can increase its stake and verifiers deposit;
  • add additional check into function unstake(uint256 _amount): unstake amount should be less or equal than stake balance - Verifier Deposit;

Verifiers contract:

  • verifiers to submit transaction should have active deposit more or equal to minimum deposit;
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

No branches or pull requests

2 participants