Skip to content

Commit

Permalink
122 remove the mindelegation init property from the validatorset cont…
Browse files Browse the repository at this point in the history
…ract (#7)

* remove minDelegation

* remove in test minDelegation
  • Loading branch information
SamBorisov authored Apr 25, 2024
1 parent c1afcce commit 27b9418
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion contracts/ValidatorSet/IValidatorSet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ struct ValidatorInit {
struct InitStruct {
uint256 epochReward;
uint256 minStake;
uint256 minDelegation;
uint256 epochSize;
}

Expand Down
1 change: 0 additions & 1 deletion contracts/ValidatorSet/ValidatorSet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ contract ValidatorSet is ValidatorSetBase, System, AccessControl, PowerExponent,
* @dev only callable by client, can only be called once
* @param init: newEpochReward reward for a proposed epoch
* newMinStake minimum stake to become a validator
* newMinDelegation minimum amount to delegate to a validator
* @param newValidators: addr addresses of initial validators
* pubkey uint256[4] BLS public keys of initial validators
* signature uint256[2] signature of initial validators
Expand Down
2 changes: 1 addition & 1 deletion docs/RewardPool/RewardPool.md
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ Keeps the delegation pools
function delegationPositions(address, address) external view returns (uint256 duration, uint256 start, uint256 end, uint256 base, uint256 vestBonus, uint256 rsiBonus)
```

The vesting positions for every delegator.
The vesting positions for every delegator



Expand Down
5 changes: 0 additions & 5 deletions test/ValidatorSet/ValidatorSet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ describe("ValidatorSet", function () {
{
epochReward: this.epochReward,
minStake: this.minStake,
minDelegation: this.minDelegation,
epochSize: this.epochSize,
},
[this.validatorInit],
Expand Down Expand Up @@ -85,7 +84,6 @@ describe("ValidatorSet", function () {
{
epochReward: this.epochReward,
minStake: this.minStake,
minDelegation: this.minDelegation,
epochSize: this.epochSize,
},
// eslint-disable-next-line node/no-unsupported-features/es-syntax
Expand Down Expand Up @@ -113,7 +111,6 @@ describe("ValidatorSet", function () {
{
epochReward: this.epochReward,
minStake: this.minStake,
minDelegation: this.minDelegation,
epochSize: this.epochSize,
},
[this.validatorInit],
Expand Down Expand Up @@ -156,7 +153,6 @@ describe("ValidatorSet", function () {
{
epochReward: this.epochReward,
minStake: this.minStake,
minDelegation: this.minDelegation,
epochSize: this.epochSize,
},
[this.validatorInit],
Expand Down Expand Up @@ -196,7 +192,6 @@ describe("ValidatorSet", function () {
{
epochReward: this.epochReward,
minStake: this.minStake,
minDelegation: this.minDelegation,
epochSize: this.epochSize,
},
[this.validatorInit],
Expand Down
1 change: 0 additions & 1 deletion test/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ async function initializedValidatorSetStateFixtureFunction(this: Mocha.Context)
{
epochReward: this.epochReward,
minStake: this.minStake,
minDelegation: this.minDelegation,
epochSize: this.epochSize,
},
[validatorInit],
Expand Down

0 comments on commit 27b9418

Please sign in to comment.