In multiple functions you use named return values but still use the return statment.
For example in _getTotalVariableDepositFee in BorrowerOperations
in getPendingYUSDDebtReward in TroberManager
and in many more...
This is very misleading (beside a waste of gas) and cause a confusing documantation
Tools Used
Manual code review
Recommended Mitigation Steps
remove the return statement or the named return value
Handle
certora
Vulnerability details
Impact
In multiple functions you use named return values but still use the return statment. For example in
_getTotalVariableDepositFee
inBorrowerOperations
ingetPendingYUSDDebtReward
inTroberManager
and in many more...This is very misleading (beside a waste of gas) and cause a confusing documantation
Tools Used
Manual code review
Recommended Mitigation Steps
remove the return statement or the named return value