Allow operator share to be set to existing share

This commit is contained in:
Amir Bandeali
2019-11-12 20:14:48 -08:00
parent 812c306805
commit 7f3d281faa

View File

@@ -164,8 +164,8 @@ contract MixinStakingPool is
poolId,
newOperatorShare
));
} else if (newOperatorShare >= currentOperatorShare) {
// new share must be less than the current share
} else if (newOperatorShare > currentOperatorShare) {
// new share must be less than or equal to the current share
LibRichErrors.rrevert(LibStakingRichErrors.OperatorShareError(
LibStakingRichErrors.OperatorShareErrorCodes.CanOnlyDecreaseOperatorShare,
poolId,