Submitted by hickuphh3
yVaultLPFarming.sol#L169-L170
yVault users participating in the farm have to trust that:
Should either of these assumptions break, then it could possibly be the case that currentBalance is less than previousBalance, causing deposits and crucially, withdrawals to fail due to subtraction overflow.
For instance,
A simple fix would be to return if currentBalance  previousBalance. A full fix would properly handle potential shortfall.
spaghettieth (JPEGd) confirmed, but disagreed with High severity and commented:
spaghettieth (JPEGd) resolved and commented:
LSDan (judge) commented:
