for (uint256 i = 0; i < user.deposits.length; i++) {
for (uint256 i = 0; i < user.deposits.length; i++) { // Loop through all deposits
if (user.deposits[i].withdrawn < user.deposits[i].amount.mul(MAXIMUM_PROFIT_PERCENTAGE).div(PERCENTAGE_DIVISOR)) {
if (user.deposits[i].withdrawn < user.deposits[i].amount.mul(MAXIMUM_PROFIT_PERCENTAGE).div(PERCENTAGE_DIVISOR)) {// Check if deposit is not fully withdrawn