Skip to content

Commit

Permalink
Support 100 percent in one beneficiary
Browse files Browse the repository at this point in the history
  • Loading branch information
kikakkz committed Mar 31, 2023
1 parent 4a9e63e commit 24488e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/v0.1/OwnerActor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ contract OwnerActor is Controllable {
Beneficiary.Percent memory percentBeneficiary
) public onlyController {
require(_miner.exist, "Owner: there is no miner custodied");
require(percentBeneficiary.percent < 100 && percentBeneficiary.percent > 0, "Owner: invalid percent");
require(percentBeneficiary.percent <= 100 && percentBeneficiary.percent > 0, "Owner: invalid percent");
Miner.setPercentBeneficiary(_miner, percentBeneficiary);
}
}

0 comments on commit 24488e0

Please sign in to comment.