users are currently able to deposit funds in to the protocol by calling the deposit function
It calls the internal deposit function which has the mint functionality below
As it is seen it is expected that the mint will return (bool isFirstMint, uint256 amountScaled, uint256 newTotalSupply, uint256 amountUnderlying)
in that order
However, when we look at the mint it returns the values
return (isFirstMint, amountToMint, totalSupply(), amountScaled);
This means that the amountToMint is in place of amountScaled and should be interchanged for correct return values
Wrong return values will lead to incorrect calculations which lead to losses
wrong values returned
Return values in their correct places to avoid incorrect computations
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.