In setWinner function of briVault - _getWinnerShares(); and _setFinallizedVaultBalance(); function are called to update the totalWinnerShares and finalizedVaultAsset state variables respectively. Both of these functions return these two state values too but they are not been stored and utilised in the below function or anywhere in the protocol. The main motive to call those functions was to update the state variables and there is no need to return any values.
Likelihood:
Whenever a winner is set by the owner this thing will occur.
Impact:
There is just an info level bug. There is no financial loss to any user or to the protocol.
Removing the return type from _getWinnerShares(); and _setFinallizedVaultBalance(); function.
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.