Redundant depositLimit check in OperatorStakingPool
The OperatorStakingPool already ensures that the operator deposits didn't exceed the depositLimitin the onTokenTransferfunction which is the entry point for the token to enter the contract. Yet, the getOperatorPrincipalview function need to check this again that the returned value does not exceed the depositLimit.
The code became more complex than it should have been.
Manual Review
Just return the balance in the getOperatorPrincipalview function directly without the need to check the depositLimit
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.